LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2017, 02:13 PM   #1
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
Question strange name resolving - hosts / nslookup see, ping, web - not?


hello!
im in the middle on transfer my server to 14.2 slack, and on new system i add new local hostname - say, r1.domain.ca

i use named, i have master for this zone.

restart named.
in logfile all looks ok.
from the same server ping r1.domain.ca work great.

from my desktop, who going out via that server -
ping: cannot resolve r1.domain.ca: Unknown host


in the same time if i look by
host r1.domain.ca

or
nslookup r1.domain.ca

then all looks good, and i get returned ip for this hostname. but ping and trying to open that hostname in web browser does "unknown host" - what way that possible? :-O
 
Old 01-17-2017, 02:15 PM   #2
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
ah yes, all my old third level hostnames, who i made a way ago, work good via ping. only that one new. i suppose, maybe client looks to another dns server to resolve, and while new zone not transfered....but why, then, via host / nslookup all is ok?
 
Old 01-17-2017, 02:29 PM   #3
HermanAB
Member
 
Registered: Jun 2016
Location: Al Ain, UAE
Distribution: Slack, Fedora, Ubuntu, OpenBSD
Posts: 38

Rep: Reputation: Disabled
Hmm... are you sure that your named is configured as 'authoritative'?

Anyhoo, the best way to debug it is with tcpdump, so you can see the questions and answers:
# tcpdump -nlX -i eth0 port 53
 
Old 01-17-2017, 02:36 PM   #4
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
named.conf:
acl recurseallow {10.10.0.0/24 ; 10.10.10.1/24 ; 127.0.0.1 ;};
options {
<------>directory "/var/named";
<------>/*
<------> * If there is a firewall between you and nameservers you want
<------> * to talk to, you might need to uncomment the query-source
<------> * directive below. Previous versions of BIND always asked
<------> * questions using port 53, but BIND 8.1 uses an unprivileged
<------> * port by default.
<------> */
<------> allow-recursion {recurseallow;};
//<----> query-source address * port 53;
<------>forward first;
<------>forwarders {
<------><------>8.8.8.8;
<------><------>#159.148.60.2;
<------><------>195.2.96.2;
<------><------>#193.41.195.5;
<------><------>};
};

//.
// a caching only nameserver config
//.

zone "." IN {
<------>type hint;
<------>file "caching-example/named.ca";
};


zone "domain.ca" {
<------>type master;
<------>file "domain.ca.zone";
<------>allow-update { none; };
<------>allow-query { any; };
<------>notify yes;
<------>allow-transfer { 174.37.196.55; //freedns.afraid.org
<------><------><------>173.244.206.26; //buddyns.com
<------><------><------>88.198.106.11; //buddyns.com
<------> };
<------>
};
 
Old 01-17-2017, 09:35 PM   #5
HermanAB
Member
 
Registered: Jun 2016
Location: Al Ain, UAE
Distribution: Slack, Fedora, Ubuntu, OpenBSD
Posts: 38

Rep: Reputation: Disabled
I'm not running a DNS at the moment, but as far as I remember, the word 'authoritative' must be somewhere in the configuration file, otherwise the clients may ignore the IP address coming from it, since it is 'not authoritative' and therefore a test server / temporary server backup server that need not be trusted.

The example files from ISC.org all have the word in there, but commented out by default. Once your DNS is working properly, you have to uncomment it.
 
  


Reply

Tags
bind, named, resolv



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nslookup, host, dig not resolving entries in /etc/hosts MensaWater Linux - Networking 27 09-22-2022 09:02 AM
Internal.network is not resolving hosts and ping redirected to 198.105.244.228 rlj4214 Linux - Networking 12 01-07-2018 02:06 AM
nslookup not resolving addresses ash_lly Linux - Networking 4 04-05-2009 08:44 AM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
nslookup returns local ip when resolving another servers fqdn on same subnet nodrogx Linux - Networking 3 10-28-2003 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration