• Reverse lookup response format

    From Brad Stevenson@brad.stevenson42@gmail.com to bind-users on Tue Aug 25 11:29:19 2020
    From Newsgroup: comp.protocols.dns.bind

    --000000000000ef3ec305adb487e6
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    Hello, I apologize if this has been discussed before. I tried to search the archives but couldn=E2=80=99t find anything.



    I would like to have the behavior of the reverse lookup responses to only include the hostname, not the hostname with the reverse zone appended. So
    for example:

    # nslookup 192.168.2.206

    206.2.168.192.in-addr.arpa name =3D server1.ctois.local



    Instead of the way it is now:

    # nslookup 192.168.2.206

    206.2.168.192.in-addr.arpa name =3D server1.ctois.local.2.168.192.in-addr.arpa.



    Is this possible? Thanks in advance.

    --000000000000ef3ec305adb487e6
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;fo= nt-size:11pt;font-family:Calibri,sans-serif"><span lang=3D"EN-US">Hello, I apologize if this has been discussed before. I tried to search the archives=
    but
    couldn=E2=80=99t find anything.</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">=C2=A0</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">I would
    like to have the behavior of the reverse lookup responses to only include t=
    he
    hostname, not the hostname with the reverse zone appended. So for example:<= /span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US"># nslookup 192.168.2.206</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">206.2.168.192.in-addr.arpa= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 name =3D server1.ctois.local</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">=C2=A0</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">Instead of the way it is n= ow:</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US"># nslookup 192.168.2.206</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">206.2.168.192.in-addr.arpa= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 name =3D server1.ctois.local.2.168.192.in-ad= dr.arpa.</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">=C2=A0</span></p>

    <p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font= -family:Calibri,sans-serif"><span lang=3D"EN-US">Is this
    possible? Thanks in advance.</span></p></div>

    --000000000000ef3ec305adb487e6--
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Warren Kumari@warren@kumari.net to Brad Stevenson on Tue Aug 25 10:56:16 2020
    From Newsgroup: comp.protocols.dns.bind

    On Tue, Aug 25, 2020 at 10:30 AM Brad Stevenson
    <brad.stevenson42@gmail.com> wrote:

    Hello, I apologize if this has been discussed before. I tried to search the archives but couldn’t find anything.



    I would like to have the behavior of the reverse lookup responses to only include the hostname, not the hostname with the reverse zone appended. So for example:

    # nslookup 192.168.2.206

    206.2.168.192.in-addr.arpa name = server1.ctois.local



    Instead of the way it is now:

    # nslookup 192.168.2.206

    206.2.168.192.in-addr.arpa name = server1.ctois.local.2.168.192.in-addr.arpa.



    Is this possible? Thanks in advance.
    Yup -- you just need a period ('.') at the end of the name --
    presumably in the zone file you have server1.ctois.local - that needs
    to be server1.ctois.local. (without the period the server doesn't
    know that the name is fully qualified and adds the zone name...
    W

    _______________________________________________
    Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

    ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


    bind-users mailing list
    bind-users@lists.isc.org
    https://lists.isc.org/mailman/listinfo/bind-users
    --
    I don't think the execution is relevant when it was obviously a bad
    idea in the first place.
    This is like putting rabid weasels in your pants, and later expressing
    regret at having chosen those particular rabid weasels and that pair
    of pants.
    ---maf
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From tale@d.lawrence@salesforce.com to Brad Stevenson on Tue Aug 25 10:56:55 2020
    From Newsgroup: comp.protocols.dns.bind

    Instead of the way it is now:
    # nslookup 192.168.2.206
    206.2.168.192.in-addr.arpa name = server1.ctois.local.2.168.192.in-addr.arpa.

    In your zone file be sure that the name that is the target of the PTR
    records has a final dot. Without the trailing dot, the names are
    interpreted as relative to the current origin.
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Anand Buddhdev@anandb@ripe.net to Brad Stevenson on Tue Aug 25 16:58:59 2020
    From Newsgroup: comp.protocols.dns.bind

    On 25/08/2020 16:29, Brad Stevenson wrote:

    Hi Brad,

    I would like to have the behavior of the reverse lookup responses to only include the hostname, not the hostname with the reverse zone appended. So
    for example:

    # nslookup 192.168.2.206

    206.2.168.192.in-addr.arpa name = server1.ctois.local

    In your zone file, append a dot to the server name, like this:

    server1.ctois.local.

    Regards,
    Anand
    --- Synchronet 3.18a-Linux NewsLink 1.113