diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-10 21:18:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-10 21:18:07 +0000 |
commit | 9ee93e3d215a4c62f0eb1803596a94b598d6199f (patch) | |
tree | 62c3a863bd255d4221c0b0049cd5966e581870d7 /etc | |
parent | e348dcecd883ce4ab6d5be11ad25240eb8cb3634 (diff) | |
download | pfsense-9ee93e3d215a4c62f0eb1803596a94b598d6199f.zip pfsense-9ee93e3d215a4c62f0eb1803596a94b598d6199f.tar.gz |
Use nameservers.conf too, if it exists
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 59cb4c0..b07d71e 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -89,6 +89,12 @@ function get_nameservers() { if($item <> "") $master_list[] = $item; } + if(!file_exists("/var/etc/nameservers.conf")) + return $master_list; + $dns = `cat /var/etc/nameservers.conf`; + $dns_s = split("\n", $dns); + foreach($dns_s as $dns) + $master_list[] = $dns; return $master_list; } |