Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-02-2004, 04:07 PM
|
#1
|
Member
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296
Rep:
|
in-addr-arpa HELP!!
when I do
[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.
the zone file:
$ORIGIN .
$TTL 3600 ; 1 hour
168.192.in-addr.arpa IN SOA turtle.mytrek.com. root.turtle.mytrek.com. (
1 ; serial
3600 ; refresh (1 hours)
900 ; retry (15 mins)
3600000 ; expire (5 week 6 days 16 hrs)
3600 ; minimum (1 hr)
)
NS turtle.mytrek.com.
$ORIGIN 1.168.192.in-addr.arpa.
1 PTR turtle.mytrek.com.
and named.conf
# /etc/named.conf
acl dhcp-srvr { localhost;};
options {
directory "/var/named/";
};
include "/etc/rndc.key";
controls {
inet 0.0.0.0 port 953
allow { 127.0.0.1; } keys { rndckey; };
};
//This staement associates a key to a server
server 127.0.0.1 {
keys { turtle.mytrek.com.;};
};
key turtle.mytrek.com. {
algorithm hmac-md5;
secret "fhgvJhG7aIbWA7I6K6DOqWByGqfdEtXdmud4kOjRTbTlBHFwy8msB672EqZs";
};
zone "." IN {
type hint;
file "named.ca";
};
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
Thanks in advance
|
|
|
06-02-2004, 09:02 PM
|
#2
|
Member
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141
Rep:
|
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...
Hope this helps.
|
|
|
06-03-2004, 06:35 AM
|
#3
|
Member
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296
Original Poster
Rep:
|
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
|
|
|
06-03-2004, 07:12 AM
|
#4
|
Member
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141
Rep:
|
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.
|
|
|
06-03-2004, 07:46 AM
|
#5
|
Member
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296
Original Poster
Rep:
|
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
|
|
|
06-03-2004, 06:00 PM
|
#6
|
Member
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141
Rep:
|
I'm no DNS expert - I'm happy to leave this to others ;-)
However, spot the weirdness:
dhcpd: unable to add reverse map from 200.1.168.192.168.192.in-addr.arpa
I think perhaps that your configuration is already trying to add 192.168 and you're giving it an extra one...
|
|
|
06-04-2004, 08:43 AM
|
#7
|
Member
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296
Original Poster
Rep:
|
Yeah think that could be it, I'll alter the file when I get in and see if it makes a difference
|
|
|
06-05-2004, 02:11 AM
|
#8
|
Member
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296
Original Poster
Rep:
|
Yaeh that did the trick, everythings working ok
/var/log/messages
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
Thanx for your help!! Much appreciated
|
|
|
10-10-2008, 02:47 AM
|
#9
|
LQ Newbie
Registered: Oct 2008
Posts: 4
Rep:
|
Hi,
This is an old thread but my problem is related...
I am getting this on my syslog:
added reverse map from 200.1.168.192.1.168.192.in-addr.arpa to HOST
And I needed to know how you corrected your problem.
Thanks,
Marco
|
|
|
All times are GMT -5. The time now is 06:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|