3 ms·
Yes, if the root zone (".") published a CNAME or A record. You can simulate this yourself by setting your resolver as the master for "." and giving it an A reco
by parliament32 6y ago
Yes, if the root zone (".") published a CNAME or A record. You can simulate this yourself by setting your resolver as the master for "." and giving it an A record. Note that most webservers will barf if you try to send "." in the Host header unless you explicitly configured it.
# cat named.conf.local
zone "." {
type master;
file "/etc/bind/db.root";
};
# cat db.root
$TTL 60
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS .
@ IN A 209.216.230.240
# dig a .
...
;; QUESTION SECTION:
;. IN A
;; ANSWER SECTION:
. 60 IN A 209.216.230.240
# wget http://./
--2020-08-17 09:38:26-- http://./
Resolving . (.)... 209.216.230.240
Connecting to . (.)|209.216.230.240|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
2020-08-17 09:38:26 ERROR 400: Bad Request.