LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   [named/DNS] How do you create subdomains? (https://www.linuxquestions.org/questions/linux-networking-3/%5Bnamed-dns%5D-how-do-you-create-subdomains-40946/)

BxBoy 01-10-2003 12:38 AM

[named/DNS] How do you create subdomains?
 
How would you create subdomains (2nd level), the pc1 part?

for ex. pc1.dyn.example.com ?

niknah 01-10-2003 06:46 AM

you need to get dyn.example.com pointed to your named server as a primary dns and add a few lines to the named config file.

BxBoy 01-11-2003 01:30 AM

I guess I should clarify things a bit, I do run my own DNS server (primary) and do have my own domain. I know how to edit the named.conf file so it handles subdomains that are one level (e.g. sub.example.com) but what I don't know is how to do it for the 2nd level, I want to have subdomains (for e.g. xxx.sub.example.com).

Is it done the same way? What would I need to put in the named.conf?

siddiqu 01-11-2003 01:36 AM

Hi..


You have to add NS entries in particualar Domain file


In example.com file add entries like this.

pc1.dyn.example.com IN NS x.x.x.x
pc1.dyn.example.com IN NS x.x.x.x

other entries as usual

Sidiqu.T


:study:

BxBoy 01-11-2003 02:27 AM

what is x.x.x.x , is that the ip of the Name Server?

siddiqu 01-11-2003 03:03 AM

Hi..

Yes it is the IP address of the Name server

siddiqu.T

BxBoy 01-11-2003 05:56 PM

Quote:

Originally posted by siddiqu
Hi..

Yes it is the IP address of the Name server

siddiqu.T

I've tried that but didn't work. Then where are the subdomain'ed entries handled, in the same file or different file?

niknah 01-12-2003 09:37 PM

If you are on the dns of example.com, put in the zone file(not the named.conf file)...

pc1.dyn IN A x.x.x.x
pc2.dyn IN A y.y.y.y

where x.x.x.x will be the ip address of pc1.dyn.example.com


All times are GMT -5. The time now is 10:13 AM.