3 let conf = "# Sample resolv.conf
4 ; With multiple comment styles
5 nameserver 192.168.0.3 # and EOL comments
7 domain mynet.com # and EOL comments
8 search mynet.com anotherorg.net
11 sortlist 130.155.160.0/255.255.240.0 130.155.0.0
13 options ndots:3 debug timeout:2
14 options no-ip6-dotint single-request-reopen # and EOL comments
15 options attempts:3 rotate no-check-names inet6 ip6-bytestring ip6-dotint edns0 single-request no-tld-query use-vc no-reload trust-ad
21 test Resolv.lns get conf =
22 { "#comment" = "Sample resolv.conf" }
23 { "#comment" = "With multiple comment styles" }
24 { "nameserver" = "192.168.0.3"
25 { "#comment" = "and EOL comments" } }
26 { "nameserver" = "ff02::1" }
27 { "domain" = "mynet.com"
28 { "#comment" = "and EOL comments" } }
30 { "domain" = "mynet.com" }
31 { "domain" = "anotherorg.net" } }
33 { "#comment" = "A sortlist now" }
35 { "ipaddr" = "130.155.160.0"
36 { "netmask" = "255.255.240.0" } }
37 { "ipaddr" = "130.155.0.0" } }
46 { "single-request-reopen" }
47 { "#comment" = "and EOL comments" } }
69 test Resolv.ip6_dotint
71 after set "/ip6-dotint/negate" "" = "no-ip6-dotint"
73 test Resolv.lns get "; \r\n; \t \n" = { } { }