[named/DNS] How do you create subdomains?
How would you create subdomains (2nd level), the pc1 part?
for ex. pc1.dyn.example.com ? |
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.
|
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? |
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: |
what is x.x.x.x , is that the ip of the Name Server?
|
Hi..
Yes it is the IP address of the Name server siddiqu.T |
Quote:
|
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. |