Bind9 Not Detected by system "Linux Mint 19"
I finally figured out how to configure bind9 or so I thought, Because it was working a few months ago, Then when i rebooted my computer after updating bind9 is just acting really weird
I tried running "dig localhost" because It's linked with /etc/bind/named.conf.default.zones
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
Then my file "/etc/bind/db.local" held It's default
$TTL 604800
@ IN SOA localhost. root.localhost. (
22 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
@ IN A 127.0.0.1
@ IN AAAA ::1
My /etc/hosts file has the original 127.0.0.1 localhost and the /etc/bind/named.conf.options file was
options {
directory "/var/cache/bind";
dnssec-validation auto;
auth-nxdomain no;
};
So i decided to change 127.0.0.1 to 127.1.0.1 inside of /etc/bind/db.local then restarted bind9 and i got no errors, nothing failed... checkzone came up ok for the file, But when i did a dig localhost the same thing came back 127.0.0.1 So i just copied /etc/bind/db.local to db.locallocal so it couldn't detect it, I restarted bind9, No errors. So i did a dig localhost and it still came back 127.0.0.1
What is happening here, Isn't the point of bind9 to resolve names to IPv4 address's, This isn't only an issue with the localhost, I also tried changing the zone name to a new name and it was not detected, and also made my own file and it resolved my ipv4 from my Ethernet in ifconfig, Not what i told it to resolve in my zone file
By the way i also went inside of /etc/hosts and tried changing 127.0.0.1 to 120.0.1.1