LinuxQuestions.org
Visit Jeremy's Blog.
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 05-21-2010, 06:54 AM   #1
naga.presin
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
Resolving for hostnames


How do we configure to resolve for hostnames when an IP address is provided to the DNS server.

Things I tried
==============

Changes made in /etc/named.conf
zone "s170switch" IN {
type master;
file "s170switch.zone";
allow-update { none; };
};
zone "127.168.192.in-addr.arpa" IN {
type master;
file "s170switch.rev";
allow-update { none; };
};

the file with the name "s170switch.zone" was added
$TTL 86400
@ IN SOA s170switch root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS s170switch

s60-naga IN A 192.168.127.10
s60-guru IN A 192.168.127.11
s60-hari IN A 192.168.127.12

The file with the name "s170switch.rev" was added
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

10 IN PTR s60-naga
11 IN PTR s60-guru
12 IN PTR s60-hari

Changes done to resolve.conf
search s170switch
nameserver 10.16.126.1
nameserver 10.16.126.2

The DNS daemon was started by the resolution failed. Find the logs below

Stopping named: [ OK ]
Starting named: [ OK ]
[anvltest@pt-maa-linux-1 init.d]$ ./named restart
Stopping named: [ OK ]
Starting named: [ OK ]
[anvltest@pt-maa-linux-1 init.d]$ nslookup 192.168.127.11
Server: 10.16.126.1
Address: 10.16.126.1#53

** server can't find 11.127.168.192.in-addr.arpa: NXDOMAIN

Please let me know where I have gone wrong.

Last edited by pixellany; 05-21-2010 at 08:06 AM. Reason: better title
 
Old 05-21-2010, 07:34 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I see that the serial of the reverse zone is 1997022700. Have you increased it after the changes you've done? Also you use as NS the localhost. Is it the same box, with the one with the 10.16.126.1 IP?
And what is your domain? Is it s170switch?
Try this and see if it works:
Code:
$TTL 86400
@ IN SOA localhost. root.localhost. (
  2010052101 ; Serial
  28800 ; Refresh
  14400 ; Retry
  3600000 ; Expire
  86400 ) ; Minimum

  IN NS <host-with-10.16.126.1>

10 IN PTR s60-naga.s170switch.
11 IN PTR s60-guru.s170switch.
12 IN PTR s60-hari.s170switch.
Regarding the forward zone you don't have an A record for the NS (s170switch). You need something like:
Code:
...
 IN NS s170switch.

s170switch. IN A 192.168.127.10
...
Don't forget to increase the serial before reloading named!!

Regards
 
Old 05-21-2010, 08:05 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please do not post threads with a title of "urgent". We are volunteers and some do not respond well to such words.

Moved to Networking

Last edited by pixellany; 05-21-2010 at 08:06 AM.
 
Old 05-22-2010, 11:40 AM   #4
naga.presin
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Apology

I am sorry abt that tag ... i will avoid urgent tags from now on .....
 
Old 05-23-2010, 06:13 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
no problem---was bathory's reply useful?
 
  


Reply

Tags
configuration, dns



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
SuSE 10.2 out of frequency...as usual kusanagi5eed SUSE / openSUSE 5 01-17-2007 12:13 PM
Open, but not as usual article khhome06 General 1 01-16-2007 03:28 AM
Pre-Compile ?'s / Not the usual ............................ justaguynsrq Slackware 4 11-08-2004 10:40 PM
mx700 (this is not the usual problem!!!) dave_blob Linux - Hardware 2 08-29-2004 12:20 AM
Usual newbie needs help. Zander Slackware 17 10-06-2002 11:42 AM

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

All times are GMT -5. The time now is 03:25 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