Changeset 10209 in genesis
- Timestamp:
- Mar 17, 2012, 7:24:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10198 r10209 518 518 output += """\ 519 519 search wleiden.net 520 # Try local (cache) first521 nameserver 127.0.0.1522 520 """ 523 521 if datadump['nodetype'] == 'Proxy': 524 522 output += """\ 523 # Try local (cache) first 524 nameserver 127.0.0.1 525 525 nameserver 8.8.8.8 # Google Public NameServer 526 526 nameserver 8.8.4.4 # Google Public NameServer 527 527 """ 528 528 elif datadump['nodetype'] == 'Hybrid': 529 for proxy in get_proxylist(): 530 proxy_ip = get_yaml(proxy)['masterip'] 531 output += "nameserver %-15s # %s\n" % (proxy_ip, proxy) 529 532 output += """\ 530 nameserver 172.16.4.46 # Sunny531 533 nameserver 8.8.8.8 # Google Public NameServer 532 534 nameserver 8.8.4.4 # Google Public NameServer … … 534 536 else: 535 537 output += """\ 538 # Try local (cache) first 539 nameserver 127.0.0.1 540 536 541 # Proxies are recursive nameservers 537 542 # needs to be in resolv.conf for dnsmasq as well
Note:
See TracChangeset
for help on using the changeset viewer.