Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. cat /etc/named.conf
  2. //
  3. // named.caching-nameserver.conf
  4. //
  5. // Provided by Red Hat caching-nameserver package to configure the
  6. // ISC BIND named(8) DNS server as a caching only nameserver
  7. // (as a localhost DNS resolver only).
  8. //
  9. // See /usr/share/doc/bind*/sample/ for example named configuration files.
  10. //
  11. // DO NOT EDIT THIS FILE - use system-config-bind or an editor
  12. // to create named.conf - edits to this file will be lost on
  13. // caching-nameserver package upgrade.
  14. //
  15. options {
  16. listen-on port 53 { 175.41.143.84; };
  17. listen-on-v6 port 53 { ::1; };
  18. directory "/var/named";
  19. dump-file "/var/named/data/cache_dump.db";
  20. statistics-file "/var/named/data/named_stats.txt";
  21. memstatistics-file "/var/named/data/named_mem_stats.txt";
  22.  
  23. // Those options should be used carefully because they disable port
  24. // randomization
  25. // query-source port 53;
  26. // query-source-v6 port 53;
  27.  
  28. allow-query { };
  29. # allow-query-cache { };
  30. };
  31. logging {
  32. channel default_debug {
  33. file "data/named.run";
  34. severity dynamic;
  35. };
  36. };
  37. #view localhost_resolver {
  38. # match-clients { localhost; };
  39. # match-destinations { localhost; };
  40. # recursion yes;
  41. # include "/etc/named.rfc1912.zones";
  42. #};
  43.  
  44. zone "." IN {
  45. type hint;
  46. file "named.root";
  47. };
  48.  
  49. zone "codedrunks.com" IN {
  50. type master;
  51. file "codedrunks.com";
  52. };
  53.  
  54. ==============================================
  55.  
  56. cat /var/named/chroot/var/named/codedrunks.com
  57. $TTL 86400
  58. @ IN SOA codedrunks.com. sandeep.codedrunks.com. (
  59. 42 ; serial (d. adams)
  60. 3H ; refresh
  61. 15M ; retry
  62. 1W ; expiry
  63. 1D ) ; minimum
  64.  
  65. @ IN NS ns1.codedrunks.com.
  66. @ IN MX 10 ASPMX2.GOOGLEMAIL.com.
  67. @ IN MX 20 ALT1.ASPMX.L.GOOGLE.com.
  68. @ IN MX 20 ALT2.ASPMX.L.GOOGLE.com.
  69. @ IN MX 30 ASPMX2.GOOGLEMAIL.COM.
  70. ns1 IN A 175.41.143.84
  71. *.codedrunks.com IN A 175.41.143.84
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement