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.
[root@turtle named]# named-checkzone 0.1.168.192.in-addr-arpa mytrek.com.rev
dns_master_load: mytrek.com.rev:3: ignoring out-of-zone data (168.192.in-addr.arpa)
dns_master_load: mytrek.com.rev:12: ignoring out-of-zone data (1.1.168.192.in-addr.arpa)
zone 0.1.168.192.in-addr-arpa/IN: could not find NS and/or SOA records
zone 0.1.168.192.in-addr-arpa/IN: has 0 SOA records
zone 0.1.168.192.in-addr-arpa/IN: has no NS records
[root@turtle named]#
thats the rror I get! the forwrd zone 'works' fine it maps names to adress.
zone "mytrek.com" in {
type master;
file "mytrek.com.zone";
allow-update { dhcp-srvr; };
};
zone "0.1.168.192.in-addr.arpa" in {
type master;
file "mytrek.com.rev";
allow-update { dhcp-srvr; };
};
Any suggestions will be much appreciated!!
A snippet of /var/log/messages
Jun 2 20:45:10 turtle dhcpd: Added new forward map from WINXP.mytrek.com to 192.168.1.200
Jun 2 20:45:10 turtle dhcpd: unable to add reverse map from 200.1.168.192.168.192.in-addr.arpa to WINXP.mytrek.com: not authorized
Jun 2 20:45:10 turtle dhcpd: DHCPREQUEST for 192.168.1.200 (192.168.1.1) from 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 2 20:45:10 turtle dhcpd: DHCPACK on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
I'm not entirely sure that I understand your problem correctly, but setting up reverse addresses won't necessarily just work.
I have a couple of servers hosted by different ISPs. I can set up DNS records so that people can find them, but I don't own those IP addresses; if I want to be able to do a reverse lookup, I have to speak nicely to the ISP and get THEM to set up the in-addr.arpa record. They may or may not be willing to do this.
Here's an example using dummy addresses, but based on my own situation:
$dig foo.bar.baz
;; ANSWER SECTION:
foo.bar.baz. 1200 IN A 192.168.0.1
;; AUTHORITY SECTION:
bar.baz. 1200 IN NS ns1.insert-isp-here.com.
bar.baz. 1200 IN NS ns2.insert-isp-here.com.
Now, if I try to work the other way around:
$dig 1.0.168.192.in-addr.arpa
;; AUTHORITY SECTION:
0.168.192.in-addr.arpa. 3600 IN SOA ns2.insert-isp-here.com.
Even if I were to insert an in-addr.arpa record in my DNS, this would still come out the same. It takes the ISP to make the change...
Thanx for the reply!! I have a small network - Fedora2 as dhcp,nameserver, and mail server(not configured properly yet tho...) , the 4 other linux boxes and a winxp box as dhcp clients. the network is not connected to the internet , I was hoping to set it up so that all the queries are resolved by the nameserver for the network. I can ping all the machines from each other(name and ip), it takes a while for the name to be resolved and then the ping takes place- from anywhere on the network- so far so good!!!
If I issue: host winxp.mytrek.com
I get a reply telling me the address of the host , however , if I issue : host 192.168.1.200(address of winxp) it doesn't return an answer but an error!!!
Is what I'm trying to do possible!?
Also : host -l mytrek.com returns the nameserver and all availables hosts on the network
When you do a reverse lookup, you should put the address in reverse.
For instance, if
host 192.168.1.1
gives you www.foo.com,
to do it backwards, you say:
host 1.1.168.192
The host command helps you by supplying the .in-addr.arpa itself.
I would question whether you need to do DNS for your internal network - with only a few machines, it's much easier just to use hosts files. My internal network is about the same size and I do everything with /etc/hosts.
Cheers I'll try it when I get in. I originally had the network configured with the /etc/hosts files but wanted to 'mess around' with dhcp and dns to see if I could get it to work!Thanx for your replies. What does the error in /var/log/messages mean?
Jun 2 20:45:10 turtle dhcpd: Added new forward map from WINXP.mytrek.com to 192.168.1.200
Jun 2 20:45:10 turtle dhcpd: unable to add reverse map from 200.1.168.192.168.192.in-addr.arpa to WINXP.mytrek.com: not authorized
Jun 2 20:45:10 turtle dhcpd: DHCPREQUEST for 192.168.1.200 (192.168.1.1) from 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 2 20:45:10 turtle dhcpd: DHCPACK on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
Where it says its unable to add reverse map: not authorized?
I was thinkin maybe my zone/named configuration file is wrong
Jun 5 08:04:33 turtle dhcpd: DHCPDISCOVER from 00:40:f4:19:a8:29 via eth0
Jun 5 08:04:34 turtle dhcpd: DHCPOFFER on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 5 08:04:34 turtle named[2356]: client 127.0.0.1#32773: updating zone 'mytrek.com/IN': adding an RR
Jun 5 08:04:34 turtle named[2356]: client 127.0.0.1#32773: updating zone 'mytrek.com/IN': adding an RR
Jun 5 08:04:34 turtle dhcpd: Added new forward map from WINXP.mytrek.com to 192.168.1.200
Jun 5 08:04:34 turtle named[2356]: client 192.168.1.1#32773: updating zone 'in-addr.arpa/IN': deleting an rrset
Jun 5 08:04:34 turtle named[2356]: client 192.168.1.1#32773: updating zone 'in-addr.arpa/IN': adding an RR
Jun 5 08:04:34 turtle dhcpd: added reverse map from 200.1.168.192.in-addr.arpa to WINXP.mytrek.com
Jun 5 08:04:34 turtle dhcpd: DHCPREQUEST for 192.168.1.200 (192.168.1.1) from 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 5 08:04:34 turtle dhcpd: DHCPACK on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.