summaryrefslogtreecommitdiff
path: root/test/regression/dns_test/response_soa_google_com.c
blob: 30055a9a3a0a3c2f37ebeecb59b77758ffa0b7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/***************************************************************************/
/* Copyright (c) 2024 Microsoft Corporation                                */
/* Copyright (c) 2026 Eclipse ThreadX contributors                         */
/*                                                                         */
/* This program and the accompanying materials are made available under    */
/* the terms of the MIT License which is available at                      */
/* https://opensource.org/licenses/MIT.                                    */
/*                                                                         */
/* SPDX-License-Identifier: MIT                                            */
/***************************************************************************/

/*
No.     Time        Source                Destination           Protocol    Length     Info
18        4.207289000    192.168.0.1                192.168.0.105        DNS            120            Yes    Standard query response 0x0002 SOA ns1.google.com

Frame 18: 120 bytes on wire (960 bits), 120 bytes captured (960 bits)
Ethernet II, Src: TendaTec_60:4b:46 (c8:3a:35:60:4b:46), Dst: Dell_33:c1:bd (18:03:73:33:c1:bd)
Internet Protocol Version 4, Src: 192.168.0.1 (192.168.0.1), Dst: 192.168.0.105 (192.168.0.105)
User Datagram Protocol, Src Port: domain (53), Dst Port: 55808 (55808)
Domain Name System (response)
    Request In: 17
    Time: 0.081002000 seconds
    Transaction ID: 0x0002
    Flags: 0x8180 (Standard query response, No error)
    Questions: 1
    Answer RRs: 1
    Authority RRs: 0
    Additional RRs: 0
    Queries
        google.com: type SOA, class IN
    Answers
        google.com: type SOA, class IN, mname ns1.google.com
            Name: google.com
            Type: SOA (Start of zone of authority)
            Class: IN (0x0001)
            Time to live: 11 hours, 56 minutes, 51 seconds
            Data length: 38
            Primary name server: ns1.google.com
            Responsible authority's mailbox: dns-admin.google.com
            Serial number: 2012090400
            Refresh interval: 2 hours
            Retry interval: 30 minutes
            Expiration limit: 14 days
            Minimum TTL: 5 minutes
*/

char response_soa_google_com_pkt[120] = {
0x18, 0x03, 0x73, 0x33, 0xc1, 0xbd, 0xc8, 0x3a, 
0x35, 0x60, 0x4b, 0x46, 0x08, 0x00, 0x45, 0x00, 
0x00, 0x6a, 0x5c, 0x34, 0x00, 0x00, 0x40, 0x11,  
0x9c, 0x94, 0xc0, 0xa8, 0x00, 0x01, 0xc0, 0xa8, 
0x00, 0x69, 0x00, 0x35, 0xda, 0x00, 0x00, 0x56, 
0x1b, 0x90, 0x00, 0x02, 0x81, 0x80, 0x00, 0x01, 
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x06, 0x67, 
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x03, 0x63, 0x6f, 
0x6d, 0x00, 0x00, 0x06, 0x00, 0x01, 0xc0, 0x0c, 
0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0xa8, 0x03, 
0x00, 0x26, 0x03, 0x6e, 0x73, 0x31, 0xc0, 0x0c, 
0x09, 0x64, 0x6e, 0x73, 0x2d, 0x61, 0x64, 0x6d, 
0x69, 0x6e, 0xc0, 0x0c, 0x77, 0xee, 0x10, 0x20, 
0x00, 0x00, 0x1c, 0x20, 0x00, 0x00, 0x07, 0x08, 
0x00, 0x12, 0x75, 0x00, 0x00, 0x00, 0x01, 0x2c 
};

int response_soa_google_com_pkt_size = sizeof(response_soa_google_com_pkt);