LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-30-2012, 10:51 AM   #1
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Rep: Reputation: Disabled
move domain from registrar's dns to my dns


i have finished setting up dns server and i need to test it. i changed the dns records in registrar for unused domain xxx.com and made it point to my ns1.yyy.com and ns2.yyy.com, the problem is that i cant access xxx.com as if there is nothing called xxx.com,
i searched about xxx.com on http://centralops.net it gives me the following.
Quote:
name class type data time to live
yyy.com IN SOA
server: sp1.domainpeople.com
email: hostmaster@siteprotect.com
serial: 2011072018
refresh: 28800
retry: 7200
expire: 604800
minimum ttl: 300
14400s (04:00:00)
yyy.com IN NS ns2.yyy.com 14400s (04:00:00)
yyy.com IN NS ns1.yyy.com 14400s (04:00:00)
with this results i dont know if i'm missing something or i just need to wait sometime for things to take ! effect.

EDIT: the information of yyy.com in whois.com
Quote:
Domain Name: YYY.COM
Registrar: DOMAINPEOPLE, INC.
Whois Server: whois.domainpeople.com
Referral URL: http://www.domainpeople.com
Name Server: SP1.DOMAINPEOPLE.COM
Name Server: SP2.DOMAINPEOPLE.COM
Status: clientTransferProhibited
Updated Date: 05-oct-2011
Creation Date: 24-nov-2010
Expiration Date: 24-nov-2012

Last edited by Haythem; 10-30-2012 at 11:18 AM.
 
Old 10-30-2012, 04:31 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
To test your server, you don't need to mess with any other systems. Just do
Code:
dig @ns1.yyy.com foo.xxx.com
That will tell you what your server thinks about foo.xxx.com.

Now to see if the rest of the internet believes that your server is the valid nameserver for xxx.com, do
Code:
dig -t NS xxx.com
 
Old 10-30-2012, 06:08 PM   #3
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
To test your server, you don't need to mess with any other systems. Just do
Code:
dig @ns1.yyy.com foo.xxx.com
That will tell you what your server thinks about foo.xxx.com.

Now to see if the rest of the internet believes that your server is the valid nameserver for xxx.com, do
Code:
dig -t NS xxx.com
Code:
$ dig -t NS xxx.com
shows ns1.yyy.com and ns2.yyy.com
however the first command give "no server found" when i use the" dig @ns1.yyy.com xxx.com and give correct results if i used "dig@<yyy.com ip> xxx.com

this is my first try with DNS and actually i dont know much about domains and hostnames so i'm sure i made something stupid in the configuration. i'll post what i exactly did and my configurations and the next post
 
Old 10-30-2012, 06:47 PM   #4
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: Disabled
first in case u read something seems non sense pls forget it i'm linux newbie and i do this for learning purpose.
i have two centos servers on different static ips 184.107.xxx.xxx and 184.107.yyy.yyy
there is a domain name "example.com" points to 184.107.xxx.xxx, and i have on this server example.com website and also other websites using virtual hosts on apache. the other centos server which has ip 184.107.yyy.yyy doesn't have a domain name and and i ssh to it using ip.

i wanted to have a DNS to host example.com and the other virtual hosts of apache. i set up DNS on both servers with the following configuration. (named.conf of centos server has ip 184.107.yyy.yyy)
Code:
# cat /etc/named.conf 
options
{
        directory "/var/named"; // the default
        dump-file               "data/cache_dump.db";
        statistics-file         "data/named_stats.txt";
        memstatistics-file      "data/named_mem_stats.txt";
	recursion no;
	allow-transfer { 184.107.xxx.xxx; };
	notify yes;
	allow-query { any; };
};

zone "." IN {
......
zone "example.com" IN { 
        type master;
        file "example.com.fwd";
        allow-update { none; };
};
zone "anotherexample.com" IN { 
	type master;
	file "anotherexample.com.fwd";
	allow-update { none; };
};
and zone file for my domain "example.com" (i just followed tutorials and and most of them using ns1.foo.bar, ns2.foo.bar)
Code:
$ORIGIN example.com.
$TTL    86400
@        IN     SOA     ns1.example.com.  h.example.com. (
                                20100104      ; Serial number
                                3H            ; Refresh     1 day
                                15M           ; Retry       2 hours
                                1W            ; Expire      41.67 days
                                1D  )         ; Minimum TTL 2 days


@       IN      NS      ns1.example.com.
@       IN      NS      ns2.example.com.
@	IN	MX	0 smtp.example.com.

ns1.example.com.          IN      A       184.107.yyy.yyy
ns2.example.com.          IN      A       184.107.xxx.xxx
example.com.       IN      A       184.107.xxx.xxx
smtp.example.com.  IN      A       184.107.xxx.xxx
that's all, i really appreciate ur help.

Last edited by Haythem; 10-30-2012 at 06:55 PM.
 
Old 10-31-2012, 03:48 AM   #5
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: Disabled
update: after 10 hours i can access xxx.com from browser. but when i use dig it gives this result
Quote:
bash-4.2$ dig @ns1.yyy.com xxx.com
dig: couldn't get address for 'ns1.yyy.com': not found

bash-4.2$ dig @ns2.yyy.com xxx.com
dig: couldn't get address for 'ns2.yyy.com': not found

bash-4.2$ dig @yyy.com xxx.com

; <<>> DiG 9.9.1-P3 <<>> @yyy.com xxx.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18140
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;xxx.com. IN A

;; ANSWER SECTION:
xxx.com. 86400 IN A 184.107.yyy.yyy

;; AUTHORITY SECTION:
xxx.com. 86400 IN NS ns1.yyy.com.
xxx.com. 86400 IN NS ns2.yyy.com.

;; ADDITIONAL SECTION:
ns1.yyy.com. 86400 IN A 184.107.xxx.xxx
ns2.yyy.com. 86400 IN A 184.107.yyy.yyy

;; Query time: 155 msec
;; SERVER: 184.107.yyy.yyy#53(184.107.yyy.yyy)
;; WHEN: Wed Oct 31 10:45:12 2012
;; MSG SIZE rcvd: 133
EDIT: this is apparently because i don't have A records for ns1 and ns2
now everything is fine

Last edited by Haythem; 10-31-2012 at 05:34 AM.
 
  


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
Is BIND necessary if your registrar provides Full DNS control? BassKozz Linux - Security 1 12-15-2009 05:00 PM
DNS NS's in registrar vs DNS NS records sopiaz57 Linux - Networking 7 06-06-2009 06:20 PM
DNS server and registrar issue jordib Linux - Server 9 06-11-2008 08:22 AM
DNS Setting for the Registrar Ivanfernandes Linux - Networking 3 01-21-2004 09:22 AM
wrong dns ip w/ dig. registrar's fault? SerfurJ Linux - Networking 4 01-09-2004 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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