Using a different domain name as the DNS server for a domain

2009-12-01 Thread Kaya Saman

Hi,

I'm wondering if it's possible in Bind like my domain providers DNS 
servers to use a different domain as the name server ns record for 
another domain??


Excuse the horrific explanation I will try to describe what I mean:

I am about to start hosting a domain called birimgrup.com in my network 
but do not wish to create a sub domain as ns.birimgrup.com;


instead I would like to use my own domain which is called 
optiplex-networks.com as the ns server, meaning ns1.optiplex-networks.com:


as example:

dig optiplex-networks.com

;  DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5  optiplex-networks.com
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 48891
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;optiplex-networks.com.INA

;; ANSWER SECTION:
optiplex-networks.com.86400INA192.168.1.150

;; AUTHORITY SECTION:
optiplex-networks.com.86400INNSns1.optiplex-networks.com.
optiplex-networks.com.86400INNSns2.optiplex-networks.com.

;; ADDITIONAL SECTION:
ns1.optiplex-networks.com. 86400 INA192.168.1.100
ns2.optiplex-networks.com. 86400 INA192.168.1.101

;; Query time: 21 msec
;; SERVER: 192.168.1.100#53(192.168.1.100)
;; WHEN: Tue Dec  1 19:03:00 2009
;; MSG SIZE  rcvd: 123


So practically when someone does a dig for birimgrup.com it will come 
out of ns1.optiplex-networks.com!!


Can this be done?

I am assuming that I could create a zone with record:

birimgrup  in  a  ns1.optiplex-networks.com

but I am just wondering if it will complain that the data is out of zone??


As a quick addition also I have never dealt with .net .org etc TLD's 
before when setting up DNS so I'm assuming that for reverse DNS the PTR 
records will simply go into the 192.168.1.rev file I have setup??


Many thanks in advance!

--Kaya
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Using a different domain name as the DNS server for a domain

2009-12-01 Thread Chris Buxton
You can create the NS record as you have described (type = NS, not A), but 
remember to put a dot on the end:

birimgrup.com.  in  NS  ns1.optiplex-networks.com.

This is quite common. Here are some real-world examples:

com.IN  NS  a.gtld-servers.net.

menandmice.com. IN  NS  ns0.c.is.

As for reverse records, these are indexed by the IP address, not be the domain 
name on the right hand side. Your PTR records will go in the reverse zone you 
already have.

Chris Buxton
Professional Services
Men  Mice

On Dec 1, 2009, at 9:11 AM, Kaya Saman wrote:

 Hi,
 
 I'm wondering if it's possible in Bind like my domain providers DNS servers 
 to use a different domain as the name server ns record for another domain??
 
 Excuse the horrific explanation I will try to describe what I mean:
 
 I am about to start hosting a domain called birimgrup.com in my network but 
 do not wish to create a sub domain as ns.birimgrup.com;
 
 instead I would like to use my own domain which is called 
 optiplex-networks.com as the ns server, meaning ns1.optiplex-networks.com:
 
 as example:
 
 dig optiplex-networks.com
 
 ;  DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5  optiplex-networks.com
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 48891
 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
 
 ;; QUESTION SECTION:
 ;optiplex-networks.com.INA
 
 ;; ANSWER SECTION:
 optiplex-networks.com.86400INA192.168.1.150
 
 ;; AUTHORITY SECTION:
 optiplex-networks.com.86400INNSns1.optiplex-networks.com.
 optiplex-networks.com.86400INNSns2.optiplex-networks.com.
 
 ;; ADDITIONAL SECTION:
 ns1.optiplex-networks.com. 86400 INA192.168.1.100
 ns2.optiplex-networks.com. 86400 INA192.168.1.101
 
 ;; Query time: 21 msec
 ;; SERVER: 192.168.1.100#53(192.168.1.100)
 ;; WHEN: Tue Dec  1 19:03:00 2009
 ;; MSG SIZE  rcvd: 123
 
 
 So practically when someone does a dig for birimgrup.com it will come out of 
 ns1.optiplex-networks.com!!
 
 Can this be done?
 
 I am assuming that I could create a zone with record:
 
 birimgrup  in  a  ns1.optiplex-networks.com
 
 but I am just wondering if it will complain that the data is out of zone??
 
 
 As a quick addition also I have never dealt with .net .org etc TLD's before 
 when setting up DNS so I'm assuming that for reverse DNS the PTR records will 
 simply go into the 192.168.1.rev file I have setup??
 
 Many thanks in advance!
 
 --Kaya
 ___
 bind-users mailing list
 bind-users@lists.isc.org
 https://lists.isc.org/mailman/listinfo/bind-users

___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Using a different domain name as the DNS server for a domain

2009-12-01 Thread Kaya Saman

Ok I think I have got somewhere but still a bit unsure of what's going on!!


dig birimgrup.com

;  DiG 9.6.0-P1  birimgrup.com
;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 567
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;birimgrup.com. IN  A

;; ANSWER SECTION:
birimgrup.com.  86400   IN  A   192.168.1.170

;; AUTHORITY SECTION:
birimgrup.com.  86400   IN  NS  ns2.optiplex-networks.com.
birimgrup.com.  86400   IN  NS  ns1.optiplex-networks.com.

;; ADDITIONAL SECTION:
ns1.optiplex-networks.com. 86400 IN A   192.168.1.100
ns2.optiplex-networks.com. 86400 IN A   192.168.1.101

;; Query time: 7 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Dec  1 19:31:53 2009
;; MSG SIZE  rcvd: 133


On top of that my zone file looks like so:


;
; BIND data file for example.com
;
$TTL1d
@   IN  SOA ns1.optiplex-networks.com.  
mail.optiplex-networks.com. (

   2009120101 ; Serial
 7200 ; Refresh
  120 ; Retry
  2419200 ; Expire
86400); Default TTL
;
   IN  NS  
ns1.optiplex-networks.com.
   IN  NS  
ns2.optiplex-networks.com.

ns1.optiplex-networks.com.  IN  A   192.168.1.100
ns2.optiplex-networks.com.  IN  A   192.168.1.101
birimgrup.com.  IN  A   192.168.1.170 
www.birimgrup.com.  IN  A   192.168.1.170



However as I thought I have ignoring out of zone data error in my log.


Dec  1 19:31:16 NetraT1-RAY named[3646]: [ID 873579 daemon.warning] 
/var/named/birimgrup.db:14: ignoring out-of-zone data 
(ns1.optiplex-networks.com)
Dec  1 19:31:16 NetraT1-RAY named[3646]: [ID 873579 daemon.warning] 
/var/named/birimgrup.db:15: ignoring out-of-zone data 
(ns2.optiplex-networks.com)



Since line 14 and 15 are: ns1.optiplex-networks.com.  
IN  A   192.168.1.100


and

ns2.optiplex-networks.com.  IN  A   192.168.1.101

respectively I think I can remove them and all will be fine!
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Using a different domain name as the DNS server for a domain

2009-12-01 Thread Kaya Saman

Many thanks for the response Chris

As you where writing and sending this I sort of worked it out but this 
makes things much clearer :-)


I really do appreciate all the help!

--Kaya



Chris Buxton wrote:

You can create the NS record as you have described (type = NS, not A), but 
remember to put a dot on the end:

birimgrup.com.  in  NS  ns1.optiplex-networks.com.

This is quite common. Here are some real-world examples:

com.IN  NS  a.gtld-servers.net.

menandmice.com. IN  NS  ns0.c.is.

As for reverse records, these are indexed by the IP address, not be the domain 
name on the right hand side. Your PTR records will go in the reverse zone you 
already have.

Chris Buxton
Professional Services
Men  Mice

On Dec 1, 2009, at 9:11 AM, Kaya Saman wrote:

  


___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Using a different domain name as the DNS server for a domain

2009-12-01 Thread Kaya Saman

Chris Buxton wrote:

Yes, remove the A records for the name servers. They shouldn't be here - they 
belong in the zone named optiplex-networks.com.

Also, the last line of your zone looks quite odd. You should never have an IP 
address on the left side of a DNS record.

Chris Buxton
Professional Services
Men  Mice

On Dec 1, 2009, at 9:35 AM, Kaya Saman wrote:
  


Chris if you're referring to this:

  

birimgrup.com.  IN  A   192.168.1.170 
www.birimgrup.com.  IN  A   192.168.1.170






It didn't come out right on the email the actual version is like so:

birimgrup.com.   IN  A   192.168.1.170 
www.birimgrup.com.  IN  A   192.168.1.170

___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Using a different domain name as the DNS server for a domain

2009-12-01 Thread Kaya Saman






birimgrup.com.   IN  A   
192.168.1.170 www.birimgrup.com.  IN  A   
192.168.1.170

___




 ok this is really weird!

In the actual zone file they are stacked on top of each other like 
supposed to be!


Either Seamonkey isn't formatting my emails properly or it's something 
to do with my SSH tunnel into the UK right now.. probably cat 
command is my bet.

___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Using a different domain name as the DNS server for a domain

2009-12-01 Thread Chris Buxton
Yes, remove the A records for the name servers. They shouldn't be here - they 
belong in the zone named optiplex-networks.com.

Also, the last line of your zone looks quite odd. You should never have an IP 
address on the left side of a DNS record.

Chris Buxton
Professional Services
Men  Mice

On Dec 1, 2009, at 9:35 AM, Kaya Saman wrote:

 Ok I think I have got somewhere but still a bit unsure of what's going on!!
 
 
 dig birimgrup.com
 
 ;  DiG 9.6.0-P1  birimgrup.com
 ;; global options: +cmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 567
 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
 
 ;; QUESTION SECTION:
 ;birimgrup.com. IN  A
 
 ;; ANSWER SECTION:
 birimgrup.com.  86400   IN  A   192.168.1.170
 
 ;; AUTHORITY SECTION:
 birimgrup.com.  86400   IN  NS  ns2.optiplex-networks.com.
 birimgrup.com.  86400   IN  NS  ns1.optiplex-networks.com.
 
 ;; ADDITIONAL SECTION:
 ns1.optiplex-networks.com. 86400 IN A   192.168.1.100
 ns2.optiplex-networks.com. 86400 IN A   192.168.1.101
 
 ;; Query time: 7 msec
 ;; SERVER: 127.0.0.1#53(127.0.0.1)
 ;; WHEN: Tue Dec  1 19:31:53 2009
 ;; MSG SIZE  rcvd: 133
 
 
 On top of that my zone file looks like so:
 
 
 ;
 ; BIND data file for example.com
 ;
 $TTL1d
 @   IN  SOA ns1.optiplex-networks.com.  
 mail.optiplex-networks.com. (
   2009120101 ; Serial
 7200 ; Refresh
  120 ; Retry
  2419200 ; Expire
86400); Default TTL
 ;
   IN  NS  
 ns1.optiplex-networks.com.
   IN  NS  
 ns2.optiplex-networks.com.
 ns1.optiplex-networks.com.  IN  A   192.168.1.100
 ns2.optiplex-networks.com.  IN  A   192.168.1.101
 birimgrup.com.  IN  A   192.168.1.170 
 www.birimgrup.com.  IN  A   192.168.1.170
 
 
 However as I thought I have ignoring out of zone data error in my log.
 
 
 Dec  1 19:31:16 NetraT1-RAY named[3646]: [ID 873579 daemon.warning] 
 /var/named/birimgrup.db:14: ignoring out-of-zone data 
 (ns1.optiplex-networks.com)
 Dec  1 19:31:16 NetraT1-RAY named[3646]: [ID 873579 daemon.warning] 
 /var/named/birimgrup.db:15: ignoring out-of-zone data 
 (ns2.optiplex-networks.com)
 
 
 Since line 14 and 15 are: ns1.optiplex-networks.com.  IN  A   
 192.168.1.100
 
 and
 
 ns2.optiplex-networks.com.  IN  A   192.168.1.101
 
 respectively I think I can remove them and all will be fine!
 ___
 bind-users mailing list
 bind-users@lists.isc.org
 https://lists.isc.org/mailman/listinfo/bind-users


___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users