I don’t actually have a domain name to use but let’s pretend!
My server’s name is called Saturnine-U
We could set up a host file on every machine on the network:
192.168.0.2 Saturnine-U (though I wonder how that - will fit in)
but that’s not efficient! Let’s use DNS, it’s like a central directory.
I can configure this on a Cisco router easily but Ubuntu? Well, that’s why we’re here! Learning!
Let’s install dnsmasq
(I type in sudu apt get dnsmasq because ‘get’ is how we…got stuff in Red Hat but nope, get should be install)
Nice, then I save and escape (before going back in to check that I saved properly)
and restart with sudo systemctl restart networking.
[I forgot ‘networking’ at first and got ‘too few arguments’ as a message. Helpful!]
Back to opening ports with sudo ufw allow 53/tcp
It also allows it for IPv6.
(I’m doing this in a starbucks so I can’t wander in and mess with their router. Well, I could, if I knew the IP address. Any guesses? Just kidding…)
I’d have to restart it. Ideally, I could ping Saturnine-U with just the name and it would work.
I’ll see if I can get it to work at home with my Comcast router and update if I can!
My server’s name is called Saturnine-U
We could set up a host file on every machine on the network:
192.168.0.2 Saturnine-U (though I wonder how that - will fit in)
but that’s not efficient! Let’s use DNS, it’s like a central directory.
I can configure this on a Cisco router easily but Ubuntu? Well, that’s why we’re here! Learning!
Let’s install dnsmasq
(I type in sudu apt get dnsmasq because ‘get’ is how we…got stuff in Red Hat but nope, get should be install)
Nice, then I save and escape (before going back in to check that I saved properly)
and restart with sudo systemctl restart networking.
[I forgot ‘networking’ at first and got ‘too few arguments’ as a message. Helpful!]
Back to opening ports with sudo ufw allow 53/tcp
It also allows it for IPv6.
(I’m doing this in a starbucks so I can’t wander in and mess with their router. Well, I could, if I knew the IP address. Any guesses? Just kidding…)
I’d have to restart it. Ideally, I could ping Saturnine-U with just the name and it would work.
I’ll see if I can get it to work at home with my Comcast router and update if I can!
Comments
Post a Comment