Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNSService reporting Stopped while it is running #22

Open
conxuro opened this issue Dec 3, 2015 · 2 comments
Open

DNSService reporting Stopped while it is running #22

conxuro opened this issue Dec 3, 2015 · 2 comments
Assignees
Labels

Comments

@conxuro
Copy link

conxuro commented Dec 3, 2015

From GoGS: Open fredy opened this issue 3 months ago

From Web Gui:

Guifi DNSServices is stopped

From a terminal:

ps -aux | grep bind
bind 4935 0.8 3.0 424700 60236 ? Ssl 12:25 0:03 /usr/sbin/named -f -u bind
root 6065 0.0 0.1 13220 2256 pts/0 S+ 12:32 0:00 grep bind
root 28630 3.2 0.6 200716 13256 ? Sl ago04 177:27 /opt/serf/serf agent -node=a5920f97b6847b18ff397c11024ec3ac-5000 -bind=10.91.169.7:5000 -rpc-addr=127.0.0.1:7373 -join 10.139.40.82:5000

netstat -lpn | grep named
tcp 0 0 10.91.169.7:53 0.0.0.0:* LISTEN 4935/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4935/named
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 4935/named
tcp6 0 0 :::53 :::* LISTEN 4935/named
tcp6 0 0 ::1:953 :::* LISTEN 4935/named
udp 0 0 10.91.169.7:53 0.0.0.0:* 4935/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 4935/named
udp6 0 0 :::53 :::* 4935/named

@miquelmartos
Copy link

Fredy,
Execute this command from terminal and print here the output:
service bind9 status
The expected response is : "is running"
If you get another response then that is the cause.
What distribution and version are you using?

@vviudez
Copy link

vviudez commented Jan 31, 2017

Hi Miguel, on my Debian server (on a raspberry), the response for the service status is:

# /etc/init.d/bind9 status
● bind9.service - BIND Domain Name Server
   Loaded: loaded (/lib/systemd/system/bind9.service; enabled)
  Drop-In: /run/systemd/generator/bind9.service.d
           └─50-insserv.conf-$named.conf
   Active: active (running) since mar 2017-01-31 15:00:40 CET; 6min ago
     Docs: man:named(8)
  Process: 5277 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS)
 Main PID: 5340 (named)
   CGroup: /system.slice/bind9.service
           └─5340 /usr/sbin/named -f -u bind

ene 31 15:00:40 cloudy named[5340]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
ene 31 15:00:40 cloudy named[5340]: command channel listening on 127.0.0.1#953
ene 31 15:00:40 cloudy named[5340]: command channel listening on ::1#953
ene 31 15:00:40 cloudy named[5340]: managed-keys-zone: loaded serial 198
ene 31 15:00:40 cloudy named[5340]: zone 0.in-addr.arpa/IN: loaded serial 1
ene 31 15:00:40 cloudy named[5340]: zone 127.in-addr.arpa/IN: loaded serial 1
ene 31 15:00:40 cloudy named[5340]: zone 255.in-addr.arpa/IN: loaded serial 1
ene 31 15:00:40 cloudy named[5340]: zone localhost/IN: loaded serial 2
ene 31 15:00:40 cloudy named[5340]: all zones loaded
ene 31 15:00:40 cloudy named[5340]: running
ene 31 15:02:13 cloudy systemd[1]: Started BIND Domain Name Server.

I simply modified the controller page guifi-dnss.php to expect the 'running' response

function serviceStarted(){

global $DNSS_INITD;

        if (strpos(shell_exec("$DNSS_INITD status"),'running') != false)
                return 1;
        else
                return 0;
}

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants