LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-22-2001, 04:55 PM   #1
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
Cant get a reverse lookup in BIND to work


I'm installing BIND for the first time and I've got the mappings all right except for the reverse lookup on my LAN zone. I've got my localhost zone and reverse zone working, and my LAN zone working, just not the reverse LAN so i can't resolve 10.1.1.80. Here are my named.conf, lanzone.db and reverselan.db. O yah, i'm running BIND 9.1.3.

named.conf
acl "mynet" { 10.1.1.0/0; };
options {
directory "/etc/namedb"; // Working directory
pid-file "named.pid"; // Put PID file in Working Directory
allow-query { "mynet"; };
};
//Root server hints
zone "." { type hint; file "root.hints"; };
//Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};

// Provide a master mapping for mycompany.com
zone "mycompany.com" {
type master;
file "mycompany.com.db";
};

// Provide a reverse lookup for 10.1.1.x
zone "1.1.10.in-addr.arpa" {
type master;
file "mycompany.com.rev";
notify no;
};

controls {
inet 127.0.0.1 allow { localhost; } keys { i_am_the_rndc_key; };
};

key "i_am_the_rndc_key" {
algorithm hmac-md5;
secret "1VWCENnSNboehxteT2vhlQ==";
};


mycompany.com.db
$TTL 38400
@ IN SOA myserver admin.mycompany.com (
2000010201 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400) ; Minimum TTL

IN NS mycompany.com

www.mycompany.com. IN A 10.1.1.80


mycompany.com.rev the broken one?
$TTL 3D
@ IN SOA myserver admin.mycompany.com (
201 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS mycompany.com.
80. IN PTR www.mycompany.com.


incase you can't tell, i want 10.1.1.80 to point to www.mycompany.com, I've got www.mycompany.com to point to 10.1.1.80, just need the reverse now.
 
Old 10-23-2001, 12:52 AM   #2
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
in mycompany.com.rev in the last line, remove the dot after the 80! That should do it.

- It's always the little things -
 
Old 10-23-2001, 12:16 PM   #3
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Original Poster
Rep: Reputation: 30
holy crap it actually worked... i love you steave
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 and reverse lookup, something ain't right. Sizam Linux - Networking 1 04-25-2005 06:51 PM
reverse lookup question greyhammer Linux - Networking 1 01-26-2005 03:50 PM
bind reverse lookup thesnaggle Linux - Software 1 03-11-2004 06:19 PM
Bind reverse lookup Kostko Linux - Networking 2 12-07-2002 09:06 AM
reverse DNS lookup phil1076 Linux - General 1 01-22-2002 03:24 PM

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

All times are GMT -5. The time now is 08:54 PM.

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