LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2013, 10:46 AM   #1
HP_Pants
LQ Newbie
 
Registered: May 2013
Posts: 11

Rep: Reputation: Disabled
duplicate nameserver entry?


So I have my nameservers set via direct admin to ns1.hpturbo.com and ns2.hpturbo.com, but when I dig them, I get a strange result

Code:
; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47346
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;ns2.hpturbo.com.		IN	A

;; ANSWER SECTION:
ns2.hpturbo.com.	14400	IN	A	204.12.208.82

;; AUTHORITY SECTION:
hpturbo.com.		14400	IN	NS	ns1.hpturbo.com.hpturbo.com.
hpturbo.com.		14400	IN	NS	ns2.hpturbo.com.

;; ADDITIONAL SECTION:
ns1.hpturbo.com.hpturbo.com. 14400 IN	A	204.12.208.82

;; Query time: 0 msec
;; SERVER: 204.12.208.82#53(204.12.208.82)
;; WHEN: Tue May  7 10:41:15 2013
;; MSG SIZE  rcvd: 109
ns1.hpturbo.com.hpturbo.com. What is that about? And how do I change it? I keep deleting ns1 out via direct admin and I keep getting the same strange error, so how do I manually edit this out?

B
 
Old 05-07-2013, 11:15 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,762

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
ns1.hpturbo.com.hpturbo.com. What is that about? And how do I change it? I keep deleting ns1 out via direct admin and I keep getting the same strange error, so how do I manually edit this out?
You miss the trailing dot after ns1.hpturbo.com in the NS record, so bind adds the zone name after the hostname. The correct entry should be something like:
Code:
   NS	ns1.hpturbo.com.
 
Old 05-07-2013, 11:24 AM   #3
HP_Pants
LQ Newbie
 
Registered: May 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
You miss the trailing dot after ns1.hpturbo.com in the NS record, so bind adds the zone name after the hostname. The correct entry should be something like:
Code:
   NS	ns1.hpturbo.com.
Yeah I kind of figured that, but when I try to modify, I get

Code:
Error Writing Records

Details

Unable to save dns zone: named-checkzone returned:
loading "hpturbo.com" from "/var/named/hpturbo.com.db.temp" class "IN"
zone hpturbo.com/IN: NS 'ns1.hpturbo.com' has no address records (A or AAAA)
zone hpturbo.com/IN: not loaded due to errors.
 
Old 05-07-2013, 01:58 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by HP_Pants View Post
Code:
zone hpturbo.com/IN: NS 'ns1.hpturbo.com' has no address records (A or AAAA)
So look up what an A record means then add one.
*Note compliance-wise one of the name servers should reside in a different network.
 
Old 05-07-2013, 03:09 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,762

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
Unable to save dns zone: named-checkzone returned:
loading "hpturbo.com" from "/var/named/hpturbo.com.db.temp" class "IN"
zone hpturbo.com/IN: NS 'ns1.hpturbo.com' has no address records (A or AAAA)
zone hpturbo.com/IN: not loaded due to errors.
As stated above there is no A RR for ns1, so you need to add one, e.g:
Code:
ns1.hpturbo.com. A x.x.x.x
where x.x.x.x is the IP address of ns1.hpturbo.com
 
  


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
Nameserver or A Entry agriz Linux - Networking 19 12-03-2011 03:12 PM
df -h shows duplicate entry ashwin.no1 Linux - Newbie 2 09-26-2011 11:12 AM
duplicate entry finding cmontr Linux - General 1 05-21-2008 11:04 PM
DNS Server: What to put for nameserver entry and more... Swakoo Linux - Networking 7 01-13-2006 01:35 PM
why does nameserver entry make browsing so quick? dcdbutler Linux - Wireless Networking 4 05-02-2005 07:28 AM


All times are GMT -5. The time now is 08:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration