Skip to content

Commit

Permalink
Rename idns into dnsi.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed May 3, 2024
1 parent ed41f48 commit 589192c
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 28 deletions.
10 changes: 5 additions & 5 deletions doc/dnsi-query.1
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
.TH "idns-query" "1" "NLnet Labs"
.TH "dnsi-query" "1" "NLnet Labs"

.SH NAME
idns-query - Send a query to a name server
dnsi-query - Send a query to a name server

.SH SYNOPSIS
.B idns query
.B dnsi query
[\fIoptions\fR]
.I query_name
[\fIquery_type\fR]

.SH DESCRIPTION
The
.B idns query
.B dnsi query
command sends a DNS query to a name server and prints out the response. The
server can either be selected or the resolver configured in the system will
be used.
Expand Down Expand Up @@ -123,7 +123,7 @@ Requests that no sanity checks are done and the query is to be sent as
specified.

Normally,
.B idns query
.B dnsi query
will refuse to do zone transfer queries with query type AXFR or IXFR
because they require special processing. With this option, you can force
it to send these queries, anyway.
Expand Down
10 changes: 5 additions & 5 deletions doc/dnsi.1
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.TH "idns" "1" "NLnet Labs"
.TH "dnsi" "1" "NLnet Labs"

.SH NAME
idns - inspect the DNS
dnsi - inspect the DNS

.SH SYNOPSIS
.B idns
.B dnsi
[<options>]
<command>
[<args>]

.SH DESCRIPTION
Inspect the Domain Name System (DNS) in various ways.

.B idns
.B dnsi
provides a number of commands that perform various tasks related to the DNS.

Please consult the manual pages for these individual commands for more
Expand All @@ -21,6 +21,6 @@ information.
.SH IDNS COMMANDS

.PP
\fBidns-query\fR(1)
\fBdnsi-query\fR(1)
.RS 4
Send a query to a name server.
6 changes: 3 additions & 3 deletions src/bin/dnsi.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! The _idns_ binary.
//! The _dnsi_ binary.
use clap::Parser;
use domain_tools::idns;
use domain_tools::dnsi;

fn main() {
if let Err(err) = idns::Args::parse().execute() {
if let Err(err) = dnsi::Args::parse().execute() {
eprintln!("{}", err);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/dnsi/client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! The DNS client for _idns._
//! The DNS client for _dnsi._
use std::fmt;
use std::net::SocketAddr;
Expand All @@ -14,12 +14,12 @@ use domain::net::client::protocol::UdpConnect;
use domain::net::client::request::{RequestMessage, SendRequest};
use domain::resolv::stub::conf;
use tokio::net::TcpStream;
use crate::idns::error::Error;
use crate::dnsi::error::Error;


//------------ Client --------------------------------------------------------

/// The DNS client used by _idns._
/// The DNS client used by _dnsi._
#[derive(Clone, Debug)]
pub struct Client {
servers: Vec<Server>,
Expand Down
8 changes: 4 additions & 4 deletions src/dnsi/commands/help.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! The help command of _idns._
//! The help command of _dnsi._
use std::io::Write;
use std::process::Command;
use tempfile::NamedTempFile;
use crate::idns::error::Error;
use crate::dnsi::error::Error;


//------------ Help ----------------------------------------------------------
Expand Down Expand Up @@ -47,9 +47,9 @@ impl Help {
}

impl Help {
const IDNS_1: &'static [u8] = include_bytes!("../../../doc/idns.1");
const IDNS_1: &'static [u8] = include_bytes!("../../../doc/dnsi.1");
const IDNS_QUERY_1: &'static [u8] = include_bytes!(
"../../../doc/idns-query.1"
"../../../doc/dnsi-query.1"
);
}

8 changes: 4 additions & 4 deletions src/dnsi/commands/query.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! The query command of _idns._
//! The query command of _dnsi._
use std::fmt;
use std::collections::HashSet;
Expand All @@ -15,9 +15,9 @@ use domain::net::client::request::RequestMessage;
use domain::rdata::{AllRecordData, Ns, Soa};
use domain::resolv::stub::StubResolver;
use domain::resolv::stub::conf::ResolvConf;
use crate::idns::client::{Answer, Client, Server, Transport};
use crate::idns::error::Error;
use crate::idns::output::OutputFormat;
use crate::dnsi::client::{Answer, Client, Server, Transport};
use crate::dnsi::error::Error;
use crate::dnsi::output::OutputFormat;


//------------ Query ---------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/dnsi/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! The actual implementation of _idns._
//! The actual implementation of _dnsi._
pub use self::args::Args;

Expand Down
2 changes: 1 addition & 1 deletion src/dnsi/output/dig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::io;
use domain::base::iana::Rtype;
use domain::base::opt::AllOptData;
use domain::rdata::AllRecordData;
use crate::idns::client::Answer;
use crate::dnsi::client::Answer;

//------------ write ---------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/dnsi/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod dig;

use std::io;
use clap::ValueEnum;
use crate::idns::client::Answer;
use super::client::Answer;

//------------ OutputFormat --------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! The actual implementation of the tools.
pub mod idns;
pub mod dnsi;

0 comments on commit 589192c

Please sign in to comment.