Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just recently set up a DNS server and I'm having problems with it trying to resolve internal ip addresses. As of right now everything seems to be working ok except for when I try to ping a box or telnet to a router by the name it can't find it unless I type the domain along with it. For instance:
typing hostname.domain.net works fine however,
typing hostname results in nothing.
I had it setup where it would do it once before but the box got hosed and now I have to start from scratch and don't remember how I had it set up from before.
Reverse domain:
$ttl 38400
0.0.10.in-addr.arpa. IN SOA Boss.Saleen.net.
. (
1158883990
10800
3600
604800
38400 )
0.0.10.in-addr.arpa. IN NS dns.saleen.net.
1.0.0.10.in-addr.arpa. IN PTR saleen2611.
2.0.0.10.in-addr.arpa. IN PTR saleenwap.
3.0.0.10.in-addr.arpa. IN PTR saleen2950.
4.0.0.10.in-addr.arpa. IN PTR saleen1901.
5.0.0.10.in-addr.arpa. IN PTR saleen1902.
6.0.0.10.in-addr.arpa. IN PTR saleen2503.
11.0.0.10.in-addr.arpa. IN PTR dns.saleen.net.
10.0.0.10.in-addr.arpa. IN PTR shelby.
Forward domain:
$ttl 38400
Saleen.net. IN SOA Boss.Saleen.net. (
1158884078
10800
3600
604800
38400 )
Saleen.net. IN NS Boss.Saleen.net.
saleen2611.Saleen.net. IN A 10.0.0.1
saleenwap.Saleen.net. IN A 10.0.0.2
saleen2950.Saleen.net. IN A 10.0.0.3
saleen1901.Saleen.net. IN A 10.0.0.4
saleen1902.Saleen.net. IN A 10.0.0.5
saleen2503.Saleen.net. IN A 10.0.0.6
shelby.Saleen.net. IN A 10.0.0.10
boss.Saleen.net. IN A 10.0.0.11
10.0.0.1.Saleen.net. IN PTR saleen2611
config file:
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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.
*/
// query-source address * port 53;
forwarders {
24.247.24.53;
24.247.15.53;
};
forward first;
};
I think that this a client issue: you may need to specify a default domain on the client in order to use hostnames without a domain. On Linux this may be manually set in /etc/resolv.conf, but the default search domain probably ought to be issued by DHCP if the system uses it.
Try using nslookup to see what happens. If nslookup for a registered system on your network without a domain name result in NXDOMAIN I would double-check that the both the DNS server and the clients have the correct search domain set. Since a lookup by FQDN succeeds, DNS itself is probably operating correctly.
more /etc/resolv.conf
search dns.saleen.net
nameserver 10.0.0.11
I hope that was the results you were looking for. If it's the problem you're suggesting I don't know the steps on how to correct it. Thanks for your help so far.
The "search" setting in /etc/resolv.conf needs to specify the domain name, rather than the DNS server, e.g.:
search saleen.net
nameserver 10.0.0.11
I would also remove the "forwarders-first" directive in named.conf, and set up the DNS servers in the /etc/resolv.conf of your DNS server instead, like this:
Although this isn't likely to be the issue, you probably ought to use lowercase for names of hosts and domains. Although DNS will cope, the fact that UNIX systems are case-sensitive means that names like Boss.Saleen.net may cause problems later. For example, I've had mail systems break because of issues with case-sensitivity.
Well half of it is working now. The Linux server is now able to resolve the host names but my Windows clients are not. Is it something with my dhcp server?
Well, I see some differences with my setup.. Here's mine that works fine.. I think I can see what's wrong in your config... namely.. what domain does your dhcp server distribute??? None, apparently..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.