LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2021, 01:38 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338

Rep: Reputation: 54
named on debian 11, where are the logs?


Edit: Found it. It's /var/log/syslog. This also helped me with the issue I was having as it turned out to be permissions:

https://askubuntu.com/questions/1156...ng-not-working


I'm having trouble stating named, but systemd is pretty much useless as far as output goes. I'm trying to figure out where I'm suppose to look to see why things are failing.

I added the following to the named.conf.options file:

Code:
logging {
  channel bind_log {
    file "/var/log/bind/bind.log" versions 3 size 5m;
    severity info;
    print-category yes;
    print-severity yes;
    print-time yes;
  };
  category default { bind_log; };
  category update { bind_log; };
  category update-security { bind_log; };
  category security { bind_log; };
  category queries { bind_log; };
  category lame-servers { null; };
};
Also created the directory /var/log/bind.

No go, it's not generating a log. It won't start, and I don't know why because there is no output going anywhere. Any way to figure out why it's failing to start? Could be something wrong with config, but there's no way to know. named-checkconf also outputs nothing.

Last edited by Red Squirrel; 11-26-2021 at 02:09 PM.
 
Old 11-27-2021, 07:47 AM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,655

Rep: Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582

When you edit a post to say you've solved it, it continues to occupy space in the Zero Reply Threads list and remains on forced-unread status in New/Latest Posts lists.

If you use a follow up post instead, it doesn't do these things, and it also causes anyone who might have subscribed to the thread to get notified.

 
1 members found this post helpful.
Old 12-03-2021, 02:04 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338

Original Poster
Rep: Reputation: 54
Ok my bad yeah should have done that.
 
Old 12-03-2021, 07:03 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,156
Blog Entries: 21

Rep: Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484Reputation: 3484
Quote:
Any way to figure out why it's failing to start?
I usually use dmesg


Code:
dmesg | grep < my question goes here. Usually application name or hardware name >
Old dmesg logs can read by cat in terminal also.

Code:
cat /var/log/dmesg/dmesg.4
You can use the locate command to find exact location of logs also.

Code:
locate dmesg
Good Luck. I gave up on systemd stuff when I could not edit some systemd call files that were locked down.
 
Old 12-03-2021, 09:32 PM   #5
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338

Original Poster
Rep: Reputation: 54
I do find systemd annoying myself... any decent mainstream distros that don't use it?
 
Old 12-04-2021, 10:14 AM   #6
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,655

Rep: Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582
Quote:
Originally Posted by Red Squirrel View Post
I do find systemd annoying myself... any decent mainstream distros that don't use it?
Depends how you define "decent" and "mainstream"...

See https://distrowatch.com/search.php?defaultinit=Not+systemd

Top three listed are currently MX Linux, antiX, Slackware.

The first two of those are Debian-based, as is Devuan, which is specifically "Debian without systemd".

 
Old 12-05-2021, 01:10 AM   #7
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338

Original Poster
Rep: Reputation: 54
Yeah was looking at Devuan, and Slackware. I may play with those. Slackware is fairly mainstream, in that it's a "main" distro and not a fork, while Devuan is a fork, so it's something to consider. Not that there's anything wrong with a fork, but I imagine it does mean there is a bit of a delay for updates. Though I don't think Slackware is considered bleeding edge either by nature. Either way going to have to start experimenting I guess. I'm still on CentOS 6.6 on my servers so need to decide on an upgrade path. The Debian 11 server I was working on got hacked while I was setting it up, no idea how they got in as I had nothing really running on it yet, just apache going to a temporary landing page, OpenSSH and named. They used a similar attack as they used on my previous box which was also CentOS 6.6. Some kind of injection into apache that allows root escalation.

So yeah at this point I gave up hosting my own server after like 15 years of self hosting. Moved the important stuff to a shared host and shut down the other sites/services.

Whatever distro I go to I want to build it into an ultra secure hosting environment that also automates lot of the tedious stuff. (basically like cpanel) Was reading that systemd adds more attack layers too, just due to it's huge complexity. Essentially I want to roll my own distro based on a main one. A custom installer, essentially. Need to read up more on that and experiment.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Back up logs file and create a script showing the backed up logs and the running logs Billy_6052 Programming 5 12-13-2014 02:32 AM
(bind) named: couldn't open pid file '/var/run/named/named.pid' - any help? samengr Linux - Server 6 04-01-2009 06:22 AM
file /var/lib/named/var/named/reverse/named.zero failed: file not found Toadman Linux - Software 15 03-18-2009 07:01 PM
chown -R named:named /var/named crash the system? joangopan Fedora 2 09-09-2007 02:46 AM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration