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
20 test Resolv.lns get conf =
21 { "#comment" = "Sample resolv.conf" }
22 { "#comment" = "With multiple comment styles" }
23 { "nameserver" = "192.168.0.3"
24 { "#comment" = "and EOL comments" } }
25 { "nameserver" = "ff02::1" }
26 { "domain" = "mynet.com"
27 { "#comment" = "and EOL comments" } }
29 { "domain" = "mynet.com" }
30 { "domain" = "anotherorg.net" } }
32 { "#comment" = "A sortlist now" }
34 { "ipaddr" = "130.155.160.0"
35 { "netmask" = "255.255.240.0" } }
36 { "ipaddr" = "130.155.0.0" } }
45 { "single-request-reopen" }
46 { "#comment" = "and EOL comments" } }
55 test Resolv.ip6_dotint
57 after set "/ip6-dotint/negate" "" = "no-ip6-dotint"
59 test Resolv.lns get "; \r\n; \t \n" = { } { }