|
@ -331,6 +331,8 @@ class DNSResolver(object): |
|
|
with open(etc_path, 'rb') as f: |
|
|
with open(etc_path, 'rb') as f: |
|
|
for line in f.readlines(): |
|
|
for line in f.readlines(): |
|
|
line = line.strip() |
|
|
line = line.strip() |
|
|
|
|
|
if "#" in line: |
|
|
|
|
|
line = line[:line.find('#')] |
|
|
parts = line.split() |
|
|
parts = line.split() |
|
|
if len(parts) >= 2: |
|
|
if len(parts) >= 2: |
|
|
ip = parts[0] |
|
|
ip = parts[0] |
|
|