Linux:Services: Difference between revisions

From Cheatsheet
Jump to navigationJump to search
No edit summary
Line 17: Line 17:


== PowerDNS ==
== PowerDNS ==
* https://doc.powerdns.com/authoritative/index.html
* https://doc.powerdns.com/authoritative/manpages/pdns_server.1.html
* https://doc.powerdns.com/authoritative/manpages/pdnsutil.1.html
=== CLI checks ===
<syntaxhighlight>
# List commands
pdns_server --help
# Check config and parse for errors
pdns_server --config=check
</syntaxhighlight>
<syntaxhighlight>
# List available commands
pdnsutil --help
# Check config and parse for errors
pdnsutil --config=check
# List all available zones
pdnsutil list-all-zones
# List all domains in the primary zone
pdnsutil list-all-zones primary
# See zone information for a specific domain
pdnsutil show-zone mydomain.com
pdnsutil show-zone 77.5.10.in-addr.arpa
# Check zone for errors
pdnsutil check-zone mydomain.com
# List all created TSIG keys
pdnsutil list-tsig-keys
</syntaxhighlight>


== MAAS ==
== MAAS ==

Revision as of 15:51, 22 August 2023

Docker

Checks

# List docker containers 
docker ps

Commands

# Enter the shell inside a docker container
docker exec -ti a89sd98sa7d /bin/bash

# Execute a command inside a container as a specific user
docker exec -it -u root asd87289hasdadz tail /var/log/nginx/access.log

PowerDNS

CLI checks

# List commands
pdns_server --help

# Check config and parse for errors
pdns_server --config=check
# List available commands 
pdnsutil --help

# Check config and parse for errors
pdnsutil --config=check

# List all available zones
pdnsutil list-all-zones

# List all domains in the primary zone
pdnsutil list-all-zones primary

# See zone information for a specific domain
pdnsutil show-zone mydomain.com
pdnsutil show-zone 77.5.10.in-addr.arpa

# Check zone for errors
pdnsutil check-zone mydomain.com

# List all created TSIG keys
pdnsutil list-tsig-keys

MAAS

Checks

Logs in either place:
/var/log/maas/
/var/snap/maas/common/log
# List status of MAAS services
maas status

# List MAAS commands
maas --help

# List available arguments for the init command
maas init --help