Unbound package - enable forwarding still no-op
-
Let me know if it works for you.
OK, it does not. However, I guess we are getting somewhere, since it turns out now why it did not work in the first place with previous package version, the list of DNS servers turns out to be empty.
$ unbound-control forward $ unbound-control list_forwards . IN forward:
Huh… Call me confused. Have you tested this with 2.1.1 prerelease version? I guess something got changed there?
-
Whats the contents of /etc/resolv.conf?
I added a safety belt to avoid adding an empty forward configuration.
-
Whats the contents of /etc/resolv.conf?
domain testdomain.local nameserver 127.0.0.1 nameserver 217.31.204.130 nameserver 193.29.206.206
-
Ok i think i found the problem. Do you have any /var/etc/nameserver_* files which might have be empty?
-
Ok i think i found the problem. Do you have any /var/etc/nameserver_* files which might have be empty?
Hmmm, afraid no such thing there.
$ ls -la /var/etc/nameserver_* ls: No match.
-
Weird. The name servers are returned by either of two functions get_dns_servers() or get_nameservers(). The latter is if the DNS servers are overridden by DHCP. So I would assume yours is handled by get_dns_servers() - which reads the contents of resolv.conf and returns the values.
If you go to 'Diagnostics -> Command prompt' and execute the following PHP code, it should return the name servers you listed.
print_r(get_dns_servers());
-
If you go to 'Diagnostics -> Command prompt' and execute the following PHP code, it should return the name servers you listed.
print_r(get_dns_servers());
Yes, that works…
Array ( [0] => 127.0.0.1 [1] => 217.31.204.130 [2] => 193.29.206.206 )
-
Ok so thats right - i pushed a patch which swopped some logic around so if you can just reinstall the package and let me know if its any better.
-
i pushed a patch which swopped some logic around so if you can just reinstall the package and let me know if its any better.
Excellent… all good now! 8)
-
Brilliant - thanks for the help in trouble shooting.
-
Thanks a lot for quick fix!