Forum Moderators: phranque
dns server
local webserver insite local network throug a nat router.
212.212.212.212 is the adress from the nat router
internal webserver got 192.168.178.4
ports on the nat router -> 192.168.178.4:80
so far this works and the hole world can access my webserver.
now i want to set up a dns and there i strugle somehow.
----------
port on the nat router 192.168.178.4:53 (tcp/udp)
dns server on 192.168.178.4
$TTL3600;
@IN SOA test.tld. postmaster.test.tld. (
2006060901;
10800;
3600;
604800;
86400 );
localhost IN A 127.0.0.1
@ 3600 IN A 192.168.178.4
@3600 IN NS ns1.test.tld.
@IN MX 10 mail.test.tld.
mail IN A 192.168.178.4
ftp IN A 192.168.178.4
www IN A 192.168.178.4
***********
dns server entry on the registrar. test.tld -> 212.212.212.212
but i allways get the error nameserver dosent respond.
Now my question what is wrong on this setup, or does it not work becouse the dns server is insite the local network?
The addresses you are serving for www, ftp, etc. are internal addresses and meaningless on the outside.
Not sure why you want to do this. Why not use the free DNS provided by most registrars, or if your registrar doesn't provide this, a third-party DNS provider? (You can get this free from some providers for a small number of domains.)