Results 1 to 2 of 2

Thread: dig command, trouble on Kali

  1. #1
    Join Date
    2019-Oct
    Posts
    2

    dig command, trouble on Kali

    I just installed Kali (2022.2, Installer 64bit, Bare Metal version) on a VM (virtualbox) and I tested the dig command.
    The version installed (9.18.4-2-Debian) looks like bugged compared to a different distro/derivate (Linux Mint installed on virtualbox as well, DiG 9.16.1-Ubuntu)

    If I execute the dig command on Kali with the +trace option, it's not able to display/retrieve the whole stack (it show only the root and the TLD info), when instead the Mint version runs ok
    If instead I use the dig command without the +trace option, the Resource Record is displayed

    The command I'm trying is:
    Code:
    dig @1.1.1.1 example.net A +trace
    Maybe it's a bug in this specific version but I don't know how to change/upgrade/downgrade it

    Do you have an idea what's the trouble?
    How can I troubleshooting it?
    Maybe other dig options are affected...

    Thanks

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    416
    As I understand it, your only meant to get the 'full' output you seem to be expecting the first time its run, and reading the manual (man dig) this is by design;


    When tracing is enabled, dig makes iterative queries to resolve the name being looked up. It fol‐
    lows referrals from the root servers, showing the answer from each server that was used to resolve the lookup.

    If @server is also specified, it affects only the initial query for the root zone name servers.


    If you 'clear' your terminal before launching a new terminal session, it will again give you a 'complete' view the first time you run the command but less info after that.

    ┌──(fred㉿kali)-[~]
    └─$ dig @1.1.1.1 example.net A +trace

    ; <<>> DiG 9.18.4-2-Debian <<>> @1.1.1.1 example.net A +trace
    ; (1 server found)
    ;; global options: +cmd
    . 512903 IN NS a.root-servers.net.
    . 512903 IN NS b.root-servers.net.
    . 512903 IN NS c.root-servers.net.
    . 512903 IN NS d.root-servers.net.
    . 512903 IN NS e.root-servers.net.
    . 512903 IN NS f.root-servers.net.
    . 512903 IN NS g.root-servers.net.
    . 512903 IN NS h.root-servers.net.
    . 512903 IN NS i.root-servers.net.
    . 512903 IN NS j.root-servers.net.
    . 512903 IN NS k.root-servers.net.
    . 512903 IN NS l.root-servers.net.
    . 512903 IN NS m.root-servers.net.
    . 512903 IN RRSIG NS 8 0 518400 20220824050000 20220811040000 20826 . FdYe/mu9n8nHUii8BQtJXfbeurA1OIciHkOhP1CCTO6BcJq9u6sqgTn K TGryiJKTdFxibzBuOE+0pT/VRK6yGYC+1U19lfQSCcVrqDUkzDBBzJd7 pr7zkAD8fnU3SkiJhT8uXUNW9akRuxrlQeEujJP1lj/ATfY4XP/Mt+43 p5CQ1JTnID72gc5nuG34DCORozDZZBw1WG1x5rwPxnrDx7YIRI XhCl+u reP4G0/1X1VnHbS8jOJrdYX4TnCY7GWXNaP35GjcOsylHop/+EkKaTMs HtbHonFZk26AvUVuvBxqzyhtp0Hel83TJGi3xxCIxkN5xd1G3G Bxaec4 n5VRAA==
    ;; Received 1097 bytes from 1.1.1.1#53(1.1.1.1) in 16 ms

    net. 172800 IN NS e.gtld-servers.net.
    net. 172800 IN NS f.gtld-servers.net.
    net. 172800 IN NS m.gtld-servers.net.
    net. 172800 IN NS i.gtld-servers.net.
    net. 172800 IN NS j.gtld-servers.net.
    net. 172800 IN NS b.gtld-servers.net.
    net. 172800 IN NS a.gtld-servers.net.
    net. 172800 IN NS c.gtld-servers.net.
    net. 172800 IN NS k.gtld-servers.net.
    net. 172800 IN NS h.gtld-servers.net.
    net. 172800 IN NS l.gtld-servers.net.
    net. 172800 IN NS g.gtld-servers.net.
    net. 172800 IN NS d.gtld-servers.net.
    net. 86400 IN DS 35886 8 2 7862B27F5F516EBE19680444D4CE5E762981931842C465F002 36401D 8BD973EE
    net. 86400 IN RRSIG DS 8 1 86400 20220824050000 20220811040000 20826 . O7FejBIdAZNT4HS9GcY+0QHAiZ1WJDLgV1GOnqg0zIwIz2R0gs fxfVF7 lw2XAbDsYRphYeETDrrlQ3GdsRsgN/1BQskHzrzTGBj17zcGadqKltz8 70GrjwaD4PmZk+WZq9AvnV6yki3RMCakL2/I8waLZRih1OBQrzTQ7NN/ VHuaXMDDXRBJ8G2aZ8JyHlrgceZKB/pbsgJmh3AF0FdnzaKvrlBEk/YH K6rw8SInYAzttLPfsgmU8xc90hfuzikfyDstEr6gHK7anzfek8 423aMg 2oJDpiXr72W2lnaV2MSnFGye3j0cDGVf0wKhXHjqZzVHH97cc7 sVl629 /Jd5Yw==
    ;; Received 1168 bytes from 192.58.128.30#53(j.root-servers.net) in 16 ms

    example.net. 172800 IN NS a.iana-servers.net.
    example.net. 172800 IN NS b.iana-servers.net.
    example.net. 86400 IN DS 31589 8 2 5A9EAEFC7CC7D6946E1D106418427D272D406B835BA9EA0219 DFBD39 74A54A81
    example.net. 86400 IN DS 31589 8 1 628FCA4806B2E475DA9FD97A1FB57B7E26F8494C
    example.net. 86400 IN DS 54761 8 2 9FDE7678F418E724ACE98537E0EAD92BB96B3109072D076A11 7492DB 708CE238
    example.net. 86400 IN DS 54761 8 1 2B45E49265B30032497E0D61D259F4ACF821A5A0
    example.net. 86400 IN DS 61250 8 2 984E001501B50F8D7B73935E12A0B15E9DCE5498F0885C3C61 93B4DC B8DDAD36
    example.net. 86400 IN DS 61250 8 1 EBF5191249B08ADBA60DC57DE26F8D530FE5D17D
    example.net. 86400 IN RRSIG DS 8 2 86400 20220815060024 20220808045024 4403 net. AaOs29Z8xi2QfBrQhB3lFepZOD0GgWnVCU9n0F5adCurAmkGiW Ro7zmd 2FR7nzUS/zP4APo4FQ2IdlvVPPi0TlUJ1vbknMSXw68XB1CJ3Pwo6Od2 8sThFk1sSw9OYIfG1hK1b6c/yv5oQSms0FmWmvYo5rEXHZdkYSMVsPRw 20fjWcdTII1NkRKkClniSdOA81oN4tZQap0m6tDvIzMqTA==
    ;; Received 620 bytes from 192.5.6.30#53(a.gtld-servers.net) in 16 ms

Similar Threads

  1. Problems with Kali Linux dig command
    By tl0x in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-12-27, 15:02
  2. Command for the command prompt adminroot@kali~$
    By David_Fola in forum Installing Archive
    Replies: 0
    Last Post: 2020-06-22, 00:30
  3. whats the right cMAC command on KALI 2?
    By 1stcowgirl in forum General Archive
    Replies: 2
    Last Post: 2016-10-20, 13:47
  4. Kali GUI goes to tty1 after 5 minutes without any command
    By RichardC7 in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2016-06-08, 23:48
  5. Kali on Android: command not found
    By hcac in forum ARM Archive
    Replies: 0
    Last Post: 2015-05-30, 10:17

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •