DnsClient-PS.Format.ps1xml

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
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
    <ViewDefinitions>
        <View>
            <Name>DnsResourceRecordDefault</Name>
            <ViewSelectedBy>
                <TypeName>DnsClient.Protocol.DnsResourceRecord</TypeName>
            </ViewSelectedBy>
            <TableControl>
                <TableHeaders>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader><Label>RecordData</Label></TableColumnHeader>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem><PropertyName>DomainName</PropertyName></TableColumnItem>
                            <TableColumnItem><PropertyName>TimeToLive</PropertyName></TableColumnItem>
                            <TableColumnItem><PropertyName>RecordClass</PropertyName></TableColumnItem>
                            <TableColumnItem><PropertyName>RecordType</PropertyName></TableColumnItem>
                            <TableColumnItem>
                                <ScriptBlock>
                                    $rstr = $_.ToString()
                                    if ($rstr -match ' (?:IN|CH|CS|HS) (?:\w+) (?&lt;recdata&gt;.*)$') {
                                        $matches.recdata
                                    } else {
                                        (record parse error)
                                    }
                                </ScriptBlock>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
        <View>
            <Name>DnsResourceRecordWide</Name>
            <ViewSelectedBy>
                <TypeName>DnsClient.Protocol.DnsResourceRecord</TypeName>
            </ViewSelectedBy>
            <WideControl>
                <ColumnNumber>1</ColumnNumber>
                <WideEntries>
                    <WideEntry>
                        <WideItem>
                            <ScriptBlock>
                                $_.ToString()
                            </ScriptBlock>
                        </WideItem>
                    </WideEntry>
                </WideEntries>
            </WideControl>
        </View>
    </ViewDefinitions>
</Configuration>