I have two Ubuntu Servers (S1 & S2 for example) on two different public IP’s (static & are in different locations). I got a domain name from GoDaddy. Lets call it, example.com
.
I have setup Bind on S1 and opened DNS port. I told GoDaddy zone file to direct hostname (example.com
) to my Public IP that S1 is on. Then I pinged the domain and got a reply back showing the public IP. This sounds like the correct DNS setup correct?
Now I have another Ubuntu Server with a static public IP address. How can I attach a subdomain such as sub1.example.com
to that public IP with Ubuntu Server S2? Would I need Bind on every server, even though it’s one domain name?