我试图让自己的DNS服务器在内部进行解析,并转发给外部的OpenDNS。 我无法将主机名传递给resolv:
const shadowWrapper = document.createElement('div');
shadowWrapper.setAttribute('style', `
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
`);
const shadowRoot = shadowWrapper.attachShadow({ mode: 'open' });
const bootstrapStyle = document.createElement('link');
bootstrapStyle.setAttribute('rel', 'stylesheet');
bootstrapStyle.setAttribute('src', 'bootstrap.min.css');
shadowRoot.appendChild(bootstrapStyle);
const modal = document.createElement('div');
modal.id = "myModal";
shadowRoot.appendChild(modal);
// Whatever you need to do to create your modal...
$("#myModal").modal();
对于FQDN来说还可以:
dig Arthur
[...]
;; AUTHORITY SECTION:
. 2789 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2018112400 1800 900 604800 86400
;; Query time: 0 msec
;; SERVER: 192.168.0.200#53(192.168.0.200)
;; WHEN: Sat Nov 24 16:27:05 CET 2018
;; MSG SIZE rcvd: 110
这是我的绑定配置:
dig Arthur.kmlt.lan
[...]
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;Arthur.kmlt.lan. IN A
;; ANSWER SECTION:
Arthur.kmlt.lan. 604800 IN A 192.168.0.20
;; AUTHORITY SECTION:
kmlt.lan. 604800 IN NS Seli.kmlt.lan.
和我的resolv.conf:
root@Seli:/etc/bind# cat db.kmlt.lan
$TTL 604800
@ IN SOA Seli.kmlt.lan. root.kmlt.lan (
20181121;
3h;
1h;
1w;
1;
);
@ IN NS Seli
Arthur IN A 192.168.0.20
Seli IN A 192.168.0.200
我不明白问题出在哪里。