Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. # pdns_control version
  2. 3.4.7
  3.  
  4. MariaDB [powerdns]> show tables;
  5. +--------------------+
  6. | Tables_in_powerdns |
  7. +--------------------+
  8. | domains |
  9. | migrations |
  10. | perm_items |
  11. | perm_templ |
  12. | perm_templ_items |
  13. | records |
  14. | records_zone_templ |
  15. | supermasters |
  16. | users |
  17. | zone_templ |
  18. | zone_templ_records |
  19. | zones |
  20. +--------------------+
  21.  
  22. MariaDB [powerdns]> select * from domains;
  23. +----+----------------------+--------+------------+--------+-----------------+---------+
  24. | id | name | master | last_check | type | notified_serial | account |
  25. +----+----------------------+--------+------------+--------+-----------------+---------+
  26. | 2 | example.com | NULL | NULL | MASTER | NULL | NULL |
  27. +----+----------------------+--------+------------+--------+-----------------+---------+
  28.  
  29. MariaDB [powerdns]> select * from records;
  30. +----+-----------+------------------+------+--------------------------------------------------------------------------+-------+------+-------------+
  31. | id | domain_id | name | type | content | ttl | prio | change_date |
  32. +----+-----------+------------------+------+--------------------------------------------------------------------------+-------+------+-------------+
  33. | 5 | 2 | example.com | SOA | ns1.example.com noreply@example.com 2016012205 28800 7200 604800 86400 | 86400 | 0 | 1453430301 |
  34. | 6 | 2 | example.com | A | | 86400 | 0 | 1453430985 |
  35. | 7 | 2 | mail.example.com | A | 123.123.123.123 | 86400 | 0 | 1453430985 |
  36. | 8 | 2 | ns1.example.com | A | 123.123.123.123 | 86400 | 0 | 1453430985 |
  37. +----+-----------+------------------+------+--------------------------------------------------------------------------+-------+------+-------------+
  38.  
  39. # dig @127.0.0.1
  40. ; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.1 <<>> @127.0.0.1
  41. ; (1 server found)
  42. ;; global options: +cmd
  43. ;; Got answer:
  44. ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3023
  45. ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
  46. ;; WARNING: recursion requested but not available
  47. ;; OPT PSEUDOSECTION:
  48. ; EDNS: version: 0, flags:; udp: 1680
  49. ;; QUESTION SECTION:
  50. ;. IN NS
  51. ;; Query time: 1 msec
  52. ;; SERVER: 127.0.0.1#53(127.0.0.1)
  53. ;; WHEN: Fri Jan 22 18:10:21 EST 2016
  54. ;; MSG SIZE rcvd: 28
  55.  
  56. # nano /etc/pdns/pdns.conf:
  57. setuid=pdns
  58. setgid=pdns
  59. launch=gmysql
  60. gmysql-host=localhost
  61. gmysql-user=powerdns
  62. gmysql-password=lolololol
  63. gmysql-dbname=powerdns
  64.  
  65. # netstat -tap
  66. Active Internet connections (servers and established)
  67. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  68. tcp 0 0 localhost:cslistener 0.0.0.0:* LISTEN 950/php-fpm: master
  69. tcp 0 0 0.0.0.0:mysql 0.0.0.0:* LISTEN 1783/mysqld
  70. tcp 0 0 0.0.0.0:ndmp 0.0.0.0:* LISTEN 2561/perl
  71. tcp 0 0 0.0.0.0:domain 0.0.0.0:* LISTEN 12283/pdns_server
  72. tcp 0 0 0.0.0.0:8822 0.0.0.0:* LISTEN 1233/sshd
  73. tcp 0 0 localhost:smtp 0.0.0.0:* LISTEN 1826/master
  74. tcp6 0 0 [::]:http [::]:* LISTEN 900/httpd
  75. tcp6 0 0 [::]:8821 [::]:* LISTEN 15532/vsftpd
  76. tcp6 0 0 [::]:8822 [::]:* LISTEN 1233/sshd
  77. tcp6 0 0 localhost:smtp [::]:* LISTEN 1826/master
  78.  
  79. # netstat -uap
  80. Active Internet connections (servers and established)
  81. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  82. udp 0 0 0.0.0.0:ndmp 0.0.0.0:* 2561/perl
  83. udp 0 0 0.0.0.0:domain 0.0.0.0:* 12283/pdns_server
  84. udp 0 0 0.0.0.0:bootpc 0.0.0.0:* 1028/dhclient
  85. udp 0 0 localhost:323 0.0.0.0:* 621/chronyd
  86. udp 0 0 0.0.0.0:13651 0.0.0.0:* 1028/dhclient
  87. udp6 0 0 localhost:323 [::]:* 621/chronyd
  88. udp6 0 0 [::]:50691 [::]:* 1028/dhclient
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement