Advertisement
dm_chu

samb4 and pdns

Dec 14th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. #?samba config
  2. # Global parameters
  3. [global]
  4. dns forwarder = 4.2.2.1
  5. netbios name = SAMBA-AD1
  6. realm = CHASN.xLAB.COM
  7. server role = active directory domain controller
  8. workgroup = CHASN
  9. vfs objects = acl_xattr
  10. map acl inherit = yes
  11. store dos attributes = yes
  12. idmap_ldb:use rfc2307 = yes
  13.  
  14. [netlogon]
  15. path = /var/lib/samba/sysvol/chasn.xlab.com/scripts
  16. read only = No
  17.  
  18. [sysvol]
  19. path = /var/lib/samba/sysvol
  20. read only = No
  21.  
  22. # pdns.conf
  23. setuid=pdns
  24. setgid=pdns
  25. launch=bind
  26. launch=gmysql
  27. gmysql-host=localhost
  28. gmysql-user=powerdns
  29. gmysql-password=chupwrdb!123
  30. gmysql-dbname=powerdns
  31.  
  32. netstat -tulpn |grep 53
  33. tcp 0 0 0.0.0.0:49153 0.0.0.0:* LISTEN 12677/samba
  34. tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 10484/pdns_server
  35. tcp6 0 0 :::49153 :::* LISTEN 12677/samba
  36. tcp6 0 0 :::53 :::* LISTEN 12692/samba
  37. udp 0 0 0.0.0.0:53 0.0.0.0:* 10484/pdns_server
  38. udp6 0 0 :::53 :::* 12692/samba
  39. #
  40. dig @127.0.0.1
  41.  
  42. ; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> @127.0.0.1
  43. ; (1 server found)
  44. ;; global options: +cmd
  45. ;; Got answer:
  46. ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 49689
  47. ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
  48. ;; WARNING: recursion requested but not available
  49.  
  50. ;; OPT PSEUDOSECTION:
  51. ; EDNS: version: 0, flags:; udp: 1680
  52. ;; QUESTION SECTION:
  53. ;. IN NS
  54.  
  55. ;; Query time: 3 msec
  56. ;; SERVER: 127.0.0.1#53(127.0.0.1)
  57. ;; WHEN: Wed Dec 12 09:39:05 EST 2018
  58. ;; MSG SIZE rcvd: 28
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement