In Ubuntu I'm trying to configure a DNS-server for a domain. I haven't tested it yet because I haven't got access to the virtual box yet. But I can feel that it contains problems. Can someone spot any obvious errors? I know it's hard without running a server test.
I have configured named.conf.local like this:
zone "craig.linuxcourse.tfe.ltu.se" { type master; file "/etc/bind/db.craig.linuxcourse.tfe.ltu.se"; }; Now I'm trying to configure the zone file but I'm sort of confused what to change the localhost to for it to be able to connect.
I also want to add the following hosts:
ns1 (with a NS- and a A-record for the DNS-server)
www
ftp
'student name' (this should be the name for the virtual server)
This is what I have changed so far:
; ; BIND data file for example.com ; $TTL 604800 @ IN SOA craig.linuxcourse.tfe.ltu.se. root.linuxcourse.tfe.ltu.se. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL IN A 192.168.1.10 ; @ IN NS ns1.craig.linuxcourse.tfe.ltu.se. @ IN A craig.linuxcourse.tfe.ltu.se www IN A www.craig.linuxcourse.tfe.ltu.se ftp IN A ftp.craig.linuxcourse.tfe.ltu.se
@ IN A craig.example.com.but you can do@ IN A 10.10.10.10.named-checkzone example.com /path/to/zonefilewill check zone file syntax and tell you what is wrong. Or be lazy and use a zone file generator like zonefile.org