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.
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106
Rep:
DNS Error
I'm having an issue getting an Internal DNS server working on a Fedora 10.
The client machine is a windows 2003 server that has the DNS Server IP set as 192.168.0.2. I can ping the IP, but not the hostname.
When I do a nslookup on the hostname I get:
Can't find server name for address 192.168.0.2: No Server Response
I have the firewall shutoff.
I used the Fed 10 Live disk and I thought that I installed everything I needed using YUM. The named is installed and running so I assume it downloaded all the dependencies. Is there something else I missed?
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106
Original Poster
Rep:
I added this to the /etc/named.rfc1912.zones file.
zone "2.0.168.192.in-addr.arpa" IN {
type master;
file "MyMachine.zone";
allow-update { none; };
};
Now I get this on the client when doing the nslookup:
Can't find server name for address 192.168.0.2: No Information
2.0.168.192.in-addr.arpa
...
...
...
DNS request timed out.
timeout was 2 seconds.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Quote:
Originally Posted by gothrog
In named.conf:
server 192.168.0.2{
};
You should be able to remove this.
Quote:
...
zone "MyMachine" IN {
type master;
allow-query { any; };
allow-update { none; };
file "MyMachine.zone";
};
You need to make up a domain name, it doesn't have to exist for real (in fact, it shouldn't exist unless you bought it, because otherwise you're making it a "black hole"). It should look something like this:
PHP Code:
zone "my-fake-domain-that-doesnt-exist.com" IN { type master; allow-query { localhost; 192.168.0.0/24; }; allow-update { none; }; file "mfdtde.zone"; };
zone "0.168.192.in-addr.arpa" IN { type master; allow-query { localhost; 192.168.0.0/24; }; file "192.168.0.reverse"; allow-update { none; }; };
Quote:
In MyMachine.zone
$TTL 1D
@ IN SOA @ rname.invalid. (
1
1D
1H
1W
3H )
NS @
IN 1D A 0.0.0.0
MyMachine A 192.168.0.2
AAAA ::1
Should look like:
PHP Code:
$TTL 1D @ IN SOA ns1.my-fake-domain-that-doesnt-exist.com. hostmaster.my-fake-domain-that-doesnt-exist.com. ( 2008122201 ; serial 28800 ; refresh 300 ; retry 2419200 ; expire 3600 ; minimum ) IN NS ns1.my-fake-domain-that-doesnt-exist.com. ns1 IN A 192.168.0.2 windowsbox IN A 192.168.0.3
192.168.0.reverse:
PHP Code:
$TTL 1D @ IN SOA ns1.my-fake-domain-that-doesnt-exist.com. hostmaster.my-fake-domain-that-doesnt-exist.com. ( 2008122201 ; serial 28800 ; refresh 300 ; retry 2419200 ; expire 3600 ; minimum ) IN NS ns1.my-fake-domain-that-doesnt-exist.com. 2 IN PTR ns1.my-fake-domain-that-doesnt-exist.com. 3 IN PTR windowsbox.my-fake-domain-that-doesnt-exist.com.
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106
Original Poster
Rep:
Thanks chort.
On the server when I do an nslookup I was able to do it on the MyMachine name.
Now I have to do the nslookup using ns1.MyMachine.com. This is working fine on the server.
Unfortunately I'm still having issues on the client side when doing the nslookup.
Error:
DNS request timed out
I'm doing a nslookup -d2 ns1.MyMachine.com. It looks like it is appending on an additional domain name.
Results before error:
QUESTIONS:
ns1.MyMachine.com.xxx.yy.otherDomainThatIsPublicForTheFirstNICard.com, type = A class = IN
DNS request timed out.
timeout was 2 seconds.
There is no "ANSWER:" portion for this one.
Any idea of what I should do about picking up the other domains that are for the work public network?
Or is this alright? I can ping the ns1.MyMachine.com from the client side. Is it possible that I'll have some unknown issue with the DNS? Normally if I can ping I think I'm alright.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.