LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2004, 04:07 PM   #1
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Rep: Reputation: 31
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
 
Old 06-02-2004, 09:02 PM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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.
 
Old 06-03-2004, 06:35 AM   #3
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
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
 
Old 06-03-2004, 07:12 AM   #4
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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.
 
Old 06-03-2004, 07:46 AM   #5
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
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
 
Old 06-03-2004, 06:00 PM   #6
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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...
 
Old 06-04-2004, 08:43 AM   #7
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
Yeah think that could be it, I'll alter the file when I get in and see if it makes a difference
 
Old 06-05-2004, 02:11 AM   #8
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
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
 
Old 10-10-2008, 02:47 AM   #9
marcobjorge
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
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
 
  


Reply



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
BIND 9 and in-addr.arpa subdomains carsten.engel Linux - Enterprise 6 07-18-2005 03:21 PM
Obtain IP addr. from MAC addr? Ryand833 Linux - Wireless Networking 3 06-30-2005 01:59 PM
get the IP-addr out from an int32_t value Ephracis Programming 3 02-09-2005 09:03 AM
Help, IP Addr. dolvmin Linux - Networking 3 01-23-2004 08:58 PM
ip addr but cant ping montgomeryi Linux - Networking 0 08-24-2003 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:32 AM.

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