diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-10 19:23:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-10 19:23:56 +0000 |
commit | 996ed18da767a39bb5a699fce73cc44717e4070e (patch) | |
tree | 55ed7a5cd5ff187f9abfdeadec4404b25b4d3b5c | |
parent | bd6a55858f0dd382aa7126a2fb6a8eaa11034292 (diff) | |
download | pfsense-996ed18da767a39bb5a699fce73cc44717e4070e.zip pfsense-996ed18da767a39bb5a699fce73cc44717e4070e.tar.gz |
Read in nameservers.conf for pppoe
-rw-r--r-- | etc/inc/pfsense-utils.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 6c90316..596f920 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -53,10 +53,15 @@ function get_dns_servers() { if (preg_match("/nameserver (.*)/", $dns, $matches)) $dns_servers[] = $matches[1]; } + $dns = `cat /var/etc/nameservers.conf`; + $dns_s = split("\n", $dns); + foreach($dns_s as $dns) { + if (preg_match("/nameserver (.*)/", $dns, $matches)) + $dns_servers[] = $matches[1]; + } return $dns_servers; } - /****f* pfsense-utils/log_error * NAME * log_error - Sends a string to syslog. |