daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Sep 19th, 2012 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In documentation for BIND I've founded info about using option rrset-order=fixed, but there recommends to recompile with --with-fixed-rrset, so:
  2.  
  3. 1. Added in /etc/apt/sources.list string "deb-src"
  4. 2. aptitude update; aptitude install build-essential devscripts fakeroot; aptitude -R build-dep bind9
  5. 3. apt-get source bind9 and wrote --with-fixed-rrset into configure-section of debian/rules
  6. 4. dpkg-buildpackage -uc -us
  7. 5. dpkg -i *
  8.  
  9. named -V returns:
  10. BIND 9.7.3 built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--with-fixed-rrset' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=' 'CPPFLAGS='
  11.  
  12. in named.conf.options added:
  13.  rrset-order {
  14.    class IN type A name "mydomain.com" order fixed;
  15.    order fixed;
  16.  };
  17.  
  18. in my zone, host "test" have several A-recods:
  19. test A 2.2.2.2
  20. test A 3.3.3.3
  21. test A 1.1.1.1
  22.  
  23. dig test.mydomain.com @ipofmydns always return
  24. test A 1.1.1.1
  25. test A 2.2.2.2
  26. test A 3.3.3.3
  27.  
  28. But it must return 2.2.2.2, 3.3.3.3, 1.1.1.1 as in zone
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top